Skip to content

Commit

Permalink
chore: fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomMoulard committed Feb 27, 2022
1 parent febe98b commit b5daf74
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ TRAEFIK_LOG_LEVEL=
TRAEFIK_PILOT_TOKEN=
TRAEFIK_PLUGINS=
TRAEFIK_SEND_ANONYMOUS_USAGE=
TRAEFIK_WEB_ENTRYPOINT=
TRAEFIK_WEBSECURE_ENTRYPOINT=
TRAEFIK_WEB_ENTRYPOINT=
TZ=
USERNAME=
USERS=
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dc config > $file 2>$log_file
test diff test_config.yml $file
mv $file test_config.yml

grep '${' **/docker-compose.*.yml | sed "s/.*\${\(.*\)}.*/\1/g" | cut -d":" -f 1 | sort -u | sort | xargs -I % echo "%=" >> .env.generated
grep '${' **/docker-compose.*.yml | sed "s/.*\${\(.*\)}.*/\1/g" | cut -d":" -f 1 | sort -u | xargs -I % echo "%=" | sort >> .env.generated
test diff .env.default .env.generated
mv .env.generated .env.default

Expand Down
4 changes: 4 additions & 0 deletions test_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ services:
cluster.name: docker-cluster
discovery.type: single-node
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.0
labels:
traefik.enable: "false"
restart: always
ulimits:
memlock:
Expand Down Expand Up @@ -353,6 +355,8 @@ services:
- /home/runner/work/make-my-server/make-my-server/elk/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml:rw
logstash:
image: docker.elastic.co/logstash/logstash:7.1.0
labels:
traefik.enable: "false"
links:
- elasticsearch
restart: always
Expand Down
10 changes: 5 additions & 5 deletions vpn/docker-compose.vpn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ services:
privileged: true
restart: always
environment:
VPN_IPSEC_PSK: ${VPN_IPSEC_PSK:-VPN_IPSEC_PSK}
VPN_USER: ${VPN_USER:-VPN_USER}
VPN_PASSWORD: ${VPN_PASSWORD:-VPN_PASSWORD}
VPN_ADDL_USERS: ${VPN_ADDL_USERS:-VPN_ADDL_USERS} # space separated values
VPN_ADDL_PASSWORDS: ${VPN_ADDL_PASSWORDS:-VPN_ADDL_PASSWORDS} # space separated values
VPN_IPSEC_PSK: ${VPN_IPSEC_PSK}
VPN_USER: ${VPN_USER}
VPN_PASSWORD: ${VPN_PASSWORD}
VPN_ADDL_USERS: ${VPN_ADDL_USERS} # space separated values
VPN_ADDL_PASSWORDS: ${VPN_ADDL_PASSWORDS} # space separated values
ports:
- '500:500/udp'
- '4500:4500/udp'
Expand Down

0 comments on commit b5daf74

Please # to comment.