mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-24 15:49:06 +02:00
Update mgmt binary name and config doc (#75)
* using wiretrustee-mgmt for binary name * using wiretrustee-mgmt * updated documentation and compose files to use config.json
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
FROM gcr.io/distroless/base
|
||||
ENTRYPOINT [ "/go/bin/wiretrustee","management"]
|
||||
COPY wiretrustee /go/bin/wiretrustee
|
||||
ENTRYPOINT [ "/go/bin/wiretrustee-mgmt","management"]
|
||||
COPY wiretrustee-mgmt /go/bin/wiretrustee-mgmt
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM gcr.io/distroless/base:debug
|
||||
ENTRYPOINT [ "/go/bin/wiretrustee","management","--log-level","debug"]
|
||||
COPY wiretrustee /go/bin/wiretrustee
|
||||
ENTRYPOINT [ "/go/bin/wiretrustee-mgmt","management","--log-level","debug"]
|
||||
COPY wiretrustee-mgmt /go/bin/wiretrustee-mgmt
|
||||
@@ -7,7 +7,7 @@ The CLI accepts the command **management** with the following options:
|
||||
start Wiretrustee Management Server
|
||||
|
||||
Usage:
|
||||
wiretrustee management [flags]
|
||||
wiretrustee-mgmt management [flags]
|
||||
|
||||
Flags:
|
||||
--datadir string server data directory location (default "/var/lib/wiretrustee/")
|
||||
@@ -39,9 +39,11 @@ docker run -d --name wiretrustee-management \
|
||||
-p 33073:33073 \
|
||||
-p 443:443 \
|
||||
-v wiretrustee-mgmt:/var/lib/wiretrustee \
|
||||
-v ./config.json:/etc/wiretrustee/config.json \
|
||||
wiretrustee/management:latest \
|
||||
--letsencrypt-domain <YOUR-DOMAIN>
|
||||
```
|
||||
> An example of config.json can be found here [config.json](../infrastructure_files/config.json)
|
||||
|
||||
Trigger Let's encrypt certificate generation:
|
||||
```bash
|
||||
@@ -76,6 +78,7 @@ docker volume create wiretrustee-mgmt
|
||||
docker run -d --name wiretrustee-management \
|
||||
-p 33073:33073 \
|
||||
-v wiretrustee-mgmt:/var/lib/wiretrustee \
|
||||
-v ./config.json:/etc/wiretrustee/config.json \
|
||||
wiretrustee/management:latest
|
||||
```
|
||||
### Debug tag
|
||||
@@ -84,6 +87,7 @@ We also publish a docker image with the debug tag which has the log-level set to
|
||||
shell $ docker run -d --name wiretrustee-management-debug \
|
||||
-p 33073:33073 \
|
||||
-v wiretrustee-mgmt:/var/lib/wiretrustee \
|
||||
-v ./config.json:/etc/wiretrustee/config.json \
|
||||
wiretrustee/management:debug-latest
|
||||
|
||||
shell $ docker exec -ti wiretrustee-management-debug /bin/sh
|
||||
|
||||
@@ -21,7 +21,7 @@ var (
|
||||
logLevel string
|
||||
|
||||
rootCmd = &cobra.Command{
|
||||
Use: "wiretrustee",
|
||||
Use: "wiretrustee-mgmt",
|
||||
Short: "",
|
||||
Long: "",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user