Skip to content

Commit

Permalink
fix: Traefik does not startup (close #203)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Dec 7, 2020
1 parent 800df8e commit 52b7e5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.default
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Kargo main configuration
DOCKER_SOCKET_NETWORK=kargo-docker-socket
DOCKER_FRONT_NETWORK=kargo-front
DOCKER_BACK_NETWORK=kargo-back
DOCKER_HOST_IP=${DOCKER_HOST:6:$((`expr length $DOCKER_HOST`-11))}
Expand Down
10 changes: 7 additions & 3 deletions kargo
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,16 @@ kargo_deploy()
sleep $DELAY
done
else
# check whether the network exist or not.
local EXISTING_DOCKER_FRONT_NETWORK=`docker network ls --filter name=^$DOCKER_FRONT_NETWORK\$`
# check whether the networks exist or not.
local EXISTING_DOCKER_SOCKET_NETWORK=`docker network ls -q --filter name=^$DOCKER_SOCKET_NETWORK\$`
if [ -z "$EXISTING_DOCKER_SOCKEt_NETWORK" ]; then
docker network create -d overlay --attachable $DOCKER_SOCKET_NETWORK
fi
local EXISTING_DOCKER_FRONT_NETWORK=`docker network ls -q --filter name=^$DOCKER_FRONT_NETWORK\$`
if [ -z "$EXISTING_DOCKER_FRONT_NETWORK" ]; then
docker network create -d overlay --attachable $DOCKER_FRONT_NETWORK
fi
local EXISTING_DOCKER_BACK_NETWORK=`docker network ls --filter name=^$DOCKER_BACK_NETWORK\$`
local EXISTING_DOCKER_BACK_NETWORK=`docker network ls -q --filter name=^$DOCKER_BACK_NETWORK\$`
if [ -z "$EXISTING_DOCKER_BACK_NETWORK" ]; then
docker network create -d overlay --attachable $DOCKER_BACK_NETWORK
fi
Expand Down

0 comments on commit 52b7e5a

Please sign in to comment.