Remove the need for the LIGHTHOUSE environment variable

This commit is contained in:
Scott Wallace 2022-04-11 09:48:43 +01:00
parent 78a45629dd
commit 093137364b
Signed by: scott
GPG key ID: AA742FDC5AFE2A72
4 changed files with 2 additions and 3 deletions

View file

@ -19,7 +19,7 @@ RUN go install github.com/chrislusf/seaweedfs/weed@latest
FROM alpine:3.15
# 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
ENV PATH=$PATH:/root/go/bin

View file

@ -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.
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.
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.
```shell
openssl enc -aes-256-cbc -iter 30 -d -salt -in seaweed-conf.enc | (cd /path/to/infranet/config/seaweedfs && tar xvz)

View file

@ -18,5 +18,4 @@ services:
- /dev/fuse
environment:
- TZ=UTC
- LIGHTHOUSE=false
restart: unless-stopped

View file

@ -3,6 +3,7 @@
BIN_DIR=/app
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]')
LIGHTHOUSE=$(/usr/bin/yq e '.lighthouse.am_lighthouse' - < /etc/nebula/config.yaml)
mkdir /storage/raw