|
|
|
@ -24,6 +24,21 @@ else |
|
|
|
fi |
|
|
|
fi |
|
|
|
set +a |
|
|
|
set +a |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# call traefik-extra |
|
|
|
|
|
|
|
if [[ ! -z "MISTBORN_SERVICE_NAME" ]] && \ |
|
|
|
|
|
|
|
[[ ! -z "MISTBORN_SERVICE_DOMAIN" ]] && \ |
|
|
|
|
|
|
|
[[ ! -z "MISTBORN_SERVICE_PORT" ]]; then |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Populating traefik routes" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mistborn-cli traefik-extra \ |
|
|
|
|
|
|
|
--domain-name $MISTBORN_SERVICE_DOMAIN \ |
|
|
|
|
|
|
|
--service-name $MISTBORN_SERVICE_NAME \ |
|
|
|
|
|
|
|
--web-port $MISTBORN_SERVICE_PORT |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
echo "Not populating traefik routes" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# init script |
|
|
|
# init script |
|
|
|
if [[ -f "${MISTBORN_SERVICE_INIT}" ]]; then |
|
|
|
if [[ -f "${MISTBORN_SERVICE_INIT}" ]]; then |
|
|
|
echo "Running init script" |
|
|
|
echo "Running init script" |
|
|
|
|