Merge pull request #5 from edgebox-iot/edgeboxctl-rename

Renaming everything to edgeboxctl
pull/6/head
Paulo Truta 2021-03-04 15:21:19 +01:00 committed by GitHub
commit c42d96bf34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 32 additions and 29 deletions

View File

@ -8,4 +8,4 @@ RUN go mod download
RUN go get github.com/githubnemo/CompileDaemon
ENTRYPOINT CompileDaemon --build="make build" --command=./bin/sysctl
ENTRYPOINT CompileDaemon --build="make build" --command=./bin/edgeboxctl

View File

@ -1,4 +1,4 @@
PROJECT?=github.com/edgebox-iot/sysctl
PROJECT?=github.com/edgebox-iot/edgeboxctl
RELEASE ?= dev
COMMIT := $(shell git rev-parse --short HEAD)
@ -9,14 +9,17 @@ build-all:
GOOS=linux GOARCH=amd64 make build
GOOS=linux GOARCH=arm make build
build-prod:
GOOS=linux GOARCH=arm RELEASE=prod make build
build:
@echo "Building ${GOOS}-${GOARCH}"
GOOS=${GOOS} GOARCH=${GOARCH} go build \
-trimpath -ldflags "-s -w -X ${PROJECT}/internal/diagnostics.Version=${RELEASE} \
-X ${PROJECT}/internal/diagnostics.Commit=${COMMIT} \
-X ${PROJECT}/internal/diagnostics.BuildDate=${BUILD_DATE}" \
-o bin/sysctl-${GOOS}-${GOARCH} ${PROJECT}/cmd/sysctl
cp ./bin/sysctl-${GOOS}-${GOARCH} ./bin/sysctl
-o bin/edgeboxctl-${GOOS}-${GOARCH} ${PROJECT}/cmd/edgeboxctl
cp ./bin/edgeboxctl-${GOOS}-${GOARCH} ./bin/edgeboxctl
clean:
rm -rf ${BUILD_DIR}

View File

@ -23,17 +23,17 @@
<img src="docs/img/logo.png" alt="Logo" width="80" height="80">
</a>
<h3 align="center">Edgebox SysCtl Module</h3>
<h3 align="center">Edgebox Control Module</h3>
<p align="center">
A System Control module written in Go. Its resonsability is to configure dependencies and perform system tasks, automatically in a schedule, or by command.
<br />
<a href="https://github.com/github_username/sysctl"><strong>Explore the docs »</strong></a>
<a href="https://github.com/github_username/edgeboxctl"><strong>Explore the docs »</strong></a>
<br />
<br />
<a href="https://github.com/github_username/sysctl/issues">Report Bug</a>
<a href="https://github.com/github_username/edgeboxctl/issues">Report Bug</a>
·
<a href="https://github.com/github_username/sysctl/issues">Request Feature</a>
<a href="https://github.com/github_username/edgeboxctl/issues">Request Feature</a>
</p>
</p>
@ -92,7 +92,7 @@ Check the following links for more info on [Docker](https://www.docker.com/) and
1. Clone the repo
```sh
git clone https://github.com/edgebox-iot/sysctl.git
git clone https://github.com/edgebox-iot/edgeboxctl.git
```
2. Run Docker-Compose
```sh
@ -111,7 +111,7 @@ _For more examples, please refer to the [Documentation](https://github.com/edgeb
<!-- ROADMAP -->
## Roadmap
See the [open issues](https://github.com/edgebox-iot/sysctl/issues) for a list of proposed features (and known issues).
See the [open issues](https://github.com/edgebox-iot/edgeboxctl/issues) for a list of proposed features (and known issues).
@ -136,15 +136,15 @@ Distributed under the MIT License. See `LICENSE` for more information.
<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[contributors-shield]: https://img.shields.io/github/contributors/edgebox-iot/sysctl.svg?style=flat-square
[contributors-url]: https://github.com/edgebox-iot/sysctl/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/edgebox-iot/sysctl.svg?style=flat-square
[forks-url]: https://github.com/edgebox-iot/sysctl/network/members
[stars-shield]: https://img.shields.io/github/stars/edgebox-iot/sysctl.svg?style=flat-square
[stars-url]: https://github.com/edgebox-iot/sysctl/stargazers
[issues-shield]: https://img.shields.io/github/issues/edgebox-iot/sysctl.svg?style=flat-square
[issues-url]: https://github.com/edgebox-iot/sysctl/issues
[license-shield]: https://img.shields.io/github/license/edgebox-iot/sysctl.svg?style=flat-square
[license-url]: https://github.com/edgebox-iot/sysctl/blob/master/LICENSE.txt
[contributors-shield]: https://img.shields.io/github/contributors/edgebox-iot/edgeboxctl.svg?style=flat-square
[contributors-url]: https://github.com/edgebox-iot/edgeboxctl/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/edgebox-iot/edgeboxctl.svg?style=flat-square
[forks-url]: https://github.com/edgebox-iot/edgeboxctl/network/members
[stars-shield]: https://img.shields.io/github/stars/edgebox-iot/edgeboxctl.svg?style=flat-square
[stars-url]: https://github.com/edgebox-iot/edgeboxctl/stargazers
[issues-shield]: https://img.shields.io/github/issues/edgebox-iot/edgeboxctl.svg?style=flat-square
[issues-url]: https://github.com/edgebox-iot/edgeboxctl/issues
[license-shield]: https://img.shields.io/github/license/edgebox-iot/edgeboxctl.svg?style=flat-square
[license-url]: https://github.com/edgebox-iot/edgeboxctl/blob/master/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/edgebox-iot

View File

@ -9,9 +9,9 @@ import (
"syscall"
"time"
"github.com/edgebox-iot/sysctl/internal/diagnostics"
"github.com/edgebox-iot/sysctl/internal/tasks"
"github.com/edgebox-iot/sysctl/internal/utils"
"github.com/edgebox-iot/edgeboxctl/internal/diagnostics"
"github.com/edgebox-iot/edgeboxctl/internal/tasks"
"github.com/edgebox-iot/edgeboxctl/internal/utils"
)
const defaultNotReadySleepTime time.Duration = time.Second * 60
@ -37,7 +37,7 @@ func main() {
os.Exit(0)
}
log.Printf("Starting Sysctl service for %s", *name)
log.Printf("Starting edgeboxctl service for %s", *name)
// setup signal catching
sigs := make(chan os.Signal, 1)

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/edgebox-iot/sysctl
module github.com/edgebox-iot/edgeboxctl
go 1.15

View File

@ -9,7 +9,7 @@ import (
"github.com/joho/godotenv"
"github.com/edgebox-iot/sysctl/internal/utils"
"github.com/edgebox-iot/edgeboxctl/internal/utils"
)
// EdgeApp : Struct representing an EdgeApp in the system

View File

@ -7,9 +7,9 @@ import (
"log"
"strconv"
"github.com/edgebox-iot/sysctl/internal/diagnostics"
"github.com/edgebox-iot/sysctl/internal/edgeapps"
"github.com/edgebox-iot/sysctl/internal/utils"
"github.com/edgebox-iot/edgeboxctl/internal/diagnostics"
"github.com/edgebox-iot/edgeboxctl/internal/edgeapps"
"github.com/edgebox-iot/edgeboxctl/internal/utils"
_ "github.com/go-sql-driver/mysql" // Mysql Driver
)