Use static version of Authelia in suites when in CI.
This is to avoid the multiple reloads due to the frontend modules being installed at the startup of the suite and randomly preventing Authelia from starting.pull/490/head
parent
26798cdf3a
commit
c3569d9bd0
|
@ -9,6 +9,7 @@ fi
|
||||||
|
|
||||||
export USER_ID=$(id -u)
|
export USER_ID=$(id -u)
|
||||||
export GROUP_ID=$(id -g)
|
export GROUP_ID=$(id -g)
|
||||||
|
export CI=false
|
||||||
|
|
||||||
|
|
||||||
echo "[BOOTSTRAP] Checking if Go is installed..."
|
echo "[BOOTSTRAP] Checking if Go is installed..."
|
||||||
|
|
|
@ -15,6 +15,7 @@ services:
|
||||||
- "${GOPATH}:/go"
|
- "${GOPATH}:/go"
|
||||||
environment:
|
environment:
|
||||||
- ENVIRONMENT=dev
|
- ENVIRONMENT=dev
|
||||||
|
- CI=${CI}
|
||||||
networks:
|
networks:
|
||||||
authelianet:
|
authelianet:
|
||||||
ipv4_address: 192.168.240.50
|
ipv4_address: 192.168.240.50
|
||||||
|
|
|
@ -2,10 +2,17 @@
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
go get github.com/cespare/reflex
|
if [ "$CI" == "true" ];
|
||||||
|
then
|
||||||
|
echo "Use static version of Authelia"
|
||||||
|
/resources/run.sh
|
||||||
|
else
|
||||||
|
echo "Use hot reloaded version of Authelia"
|
||||||
|
go get github.com/cespare/reflex
|
||||||
|
|
||||||
# Sleep 10 seconds to wait the end of npm install updating web directory
|
# Sleep 10 seconds to wait the end of npm install updating web directory
|
||||||
# and making reflex reload multiple times.
|
# and making reflex reload multiple times.
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
reflex -c /resources/reflex.conf
|
reflex -c /resources/reflex.conf
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue