Loading script/_prepare-deploy.sh +2 −2 Original line number Diff line number Diff line Loading @@ -117,19 +117,19 @@ echo -e "\n${INFO_COLOR}Checking deployment configuration in compose files ..${N echo -e " ${INFO_COLOR}compose files [ ${DATA_COLOR}${COMPOSE_FILE}${INFO_COLOR} ]${NULL_COLOR}" echo -en " ${INFO_COLOR}check command [ ${DATA_COLOR}" cleanEnvConfigCmd="[ -f .env-config ] && rm -f .env-config" # Antes de continuar, se comprueba que la configuración de despliegue sea válida para compose o swarm. if [ ${docker23CompatibleTarget} -eq 0 ] && [ ${deployingToSwarm} -eq 0 ] then echo -e "docker stack config${INFO_COLOR} ]${NULL_COLOR}\n" swarmComposeFileSplitted=$(echo ${COMPOSE_FILE} | sed 's/:/ -c /g') grep -v '^[#| ]' .env | sed -r "s/(\w+)=(.*)/export \1='\2'/g" > .env-config checkComposeFilesCmd="env -i /bin/sh -c \". \$(pwd)/.env-config && docker stack config -c ${swarmComposeFileSplitted} > /dev/null\"" checkComposeFilesCmd="env -i /bin/sh -c \". \$(pwd)/.env-config && /usr/local/bin/docker stack config -c ${swarmComposeFileSplitted} > /dev/null\"" else echo -e "docker compose config${INFO_COLOR} ]${NULL_COLOR}\n" checkComposeFilesCmd="docker compose config -q" fi cleanEnvConfigCmd="[ -f .env-config ] && rm -f .env-config" if eval "${checkComposeFilesCmd}" then echo -e "${PASS_COLOR}Valid compose configuration!${NULL_COLOR}" Loading Loading
script/_prepare-deploy.sh +2 −2 Original line number Diff line number Diff line Loading @@ -117,19 +117,19 @@ echo -e "\n${INFO_COLOR}Checking deployment configuration in compose files ..${N echo -e " ${INFO_COLOR}compose files [ ${DATA_COLOR}${COMPOSE_FILE}${INFO_COLOR} ]${NULL_COLOR}" echo -en " ${INFO_COLOR}check command [ ${DATA_COLOR}" cleanEnvConfigCmd="[ -f .env-config ] && rm -f .env-config" # Antes de continuar, se comprueba que la configuración de despliegue sea válida para compose o swarm. if [ ${docker23CompatibleTarget} -eq 0 ] && [ ${deployingToSwarm} -eq 0 ] then echo -e "docker stack config${INFO_COLOR} ]${NULL_COLOR}\n" swarmComposeFileSplitted=$(echo ${COMPOSE_FILE} | sed 's/:/ -c /g') grep -v '^[#| ]' .env | sed -r "s/(\w+)=(.*)/export \1='\2'/g" > .env-config checkComposeFilesCmd="env -i /bin/sh -c \". \$(pwd)/.env-config && docker stack config -c ${swarmComposeFileSplitted} > /dev/null\"" checkComposeFilesCmd="env -i /bin/sh -c \". \$(pwd)/.env-config && /usr/local/bin/docker stack config -c ${swarmComposeFileSplitted} > /dev/null\"" else echo -e "docker compose config${INFO_COLOR} ]${NULL_COLOR}\n" checkComposeFilesCmd="docker compose config -q" fi cleanEnvConfigCmd="[ -f .env-config ] && rm -f .env-config" if eval "${checkComposeFilesCmd}" then echo -e "${PASS_COLOR}Valid compose configuration!${NULL_COLOR}" Loading