Remove the need for the LIGHTHOUSE environment variable
This commit is contained in:
parent
78a45629dd
commit
093137364b
|
@ -19,7 +19,7 @@ RUN go install github.com/chrislusf/seaweedfs/weed@latest
|
||||||
FROM alpine:3.15
|
FROM alpine:3.15
|
||||||
|
|
||||||
# Install some required tools
|
# Install some required tools
|
||||||
RUN apk add fuse go jq
|
RUN apk add fuse go jq yq
|
||||||
RUN go install github.com/square/certstrap@latest
|
RUN go install github.com/square/certstrap@latest
|
||||||
ENV PATH=$PATH:/root/go/bin
|
ENV PATH=$PATH:/root/go/bin
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,6 @@ Distributed & E2EE self-hosting. The goal is to have nodes voluntarily join the
|
||||||
1. Use `config-node.yaml` as the template for a normal cluster node.
|
1. Use `config-node.yaml` as the template for a normal cluster node.
|
||||||
2. Use `config-lighthouse.yaml` as the template for a Lighthouse.
|
2. Use `config-lighthouse.yaml` as the template for a Lighthouse.
|
||||||
4. Update the `docker-compose.yaml` volume values for the bind mount directories for both the Nebula and SeaweedFS config directories; check and set a value for the `/storage` bind mount.
|
4. Update the `docker-compose.yaml` volume values for the bind mount directories for both the Nebula and SeaweedFS config directories; check and set a value for the `/storage` bind mount.
|
||||||
1. Set the `LIGHTHOUSE` environment variable to `true` for a Lighthouse.
|
|
||||||
5. Decrypt and un-tar the contents of the `seaweed-conf.enc` file into the SeaweedFS config directory.
|
5. Decrypt and un-tar the contents of the `seaweed-conf.enc` file into the SeaweedFS config directory.
|
||||||
```shell
|
```shell
|
||||||
openssl enc -aes-256-cbc -iter 30 -d -salt -in seaweed-conf.enc | (cd /path/to/infranet/config/seaweedfs && tar xvz)
|
openssl enc -aes-256-cbc -iter 30 -d -salt -in seaweed-conf.enc | (cd /path/to/infranet/config/seaweedfs && tar xvz)
|
||||||
|
|
|
@ -18,5 +18,4 @@ services:
|
||||||
- /dev/fuse
|
- /dev/fuse
|
||||||
environment:
|
environment:
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
- LIGHTHOUSE=false
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
BIN_DIR=/app
|
BIN_DIR=/app
|
||||||
MASTERS=10.10.100.1:9333 # Need an odd number #,10.10.100.21:9333
|
MASTERS=10.10.100.1:9333 # Need an odd number #,10.10.100.21:9333
|
||||||
NODE_IP=$(/app/nebula-cert print -path /etc/nebula/host.crt -json | jq -r '.details.ips[0] | split("/")[0]')
|
NODE_IP=$(/app/nebula-cert print -path /etc/nebula/host.crt -json | jq -r '.details.ips[0] | split("/")[0]')
|
||||||
|
LIGHTHOUSE=$(/usr/bin/yq e '.lighthouse.am_lighthouse' - < /etc/nebula/config.yaml)
|
||||||
|
|
||||||
mkdir /storage/raw
|
mkdir /storage/raw
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue