diff --git a/Dockerfile b/Dockerfile
index 3d21ce5..54973b0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,4 +8,4 @@ RUN go mod download
RUN go get github.com/githubnemo/CompileDaemon
-ENTRYPOINT CompileDaemon --build="make build" --command=./bin/sysctl
\ No newline at end of file
+ENTRYPOINT CompileDaemon --build="make build" --command=./bin/edgeboxctl
\ No newline at end of file
diff --git a/Makefile b/Makefile
index 3f68afc..8c9e222 100644
--- a/Makefile
+++ b/Makefile
@@ -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}
diff --git a/README.md b/README.md
index 18ab8ff..b49a510 100644
--- a/README.md
+++ b/README.md
@@ -23,17 +23,17 @@
-
Edgebox SysCtl Module
+ Edgebox Control Module
A System Control module written in Go. Its resonsability is to configure dependencies and perform system tasks, automatically in a schedule, or by command.
- Explore the docs »
+ Explore the docs »
- Report Bug
+ Report Bug
·
- Request Feature
+ Request Feature
@@ -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
-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.
-[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
diff --git a/cmd/sysctl/main.go b/cmd/edgeboxctl/main.go
similarity index 92%
rename from cmd/sysctl/main.go
rename to cmd/edgeboxctl/main.go
index 7436e21..ba58361 100644
--- a/cmd/sysctl/main.go
+++ b/cmd/edgeboxctl/main.go
@@ -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)
diff --git a/go.mod b/go.mod
index 4720f93..b739f0c 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/edgebox-iot/sysctl
+module github.com/edgebox-iot/edgeboxctl
go 1.15
diff --git a/internal/edgeapps/edgeapps.go b/internal/edgeapps/edgeapps.go
index bdb757a..7d9981e 100644
--- a/internal/edgeapps/edgeapps.go
+++ b/internal/edgeapps/edgeapps.go
@@ -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
diff --git a/internal/tasks/tasks.go b/internal/tasks/tasks.go
index 5cdf2b8..9070c67 100644
--- a/internal/tasks/tasks.go
+++ b/internal/tasks/tasks.go
@@ -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
)