[FIX] Launch script: problem starting 'dev' with no Docker images.

This commit is contained in:
Olivier DOSSMANN 2016-01-14 16:33:40 +01:00
parent c046048fe2
commit 65c4a060d5

View File

@ -271,7 +271,9 @@ initial_start() {
# Build Gissmo Docker images if missing # Build Gissmo Docker images if missing
if [[ "$($docker_cmd images -q gissmo:${GISSMO_VERSION} 2> /dev/null)" == "" ]]; then if [[ "$($docker_cmd images -q gissmo:${GISSMO_VERSION} 2> /dev/null)" == "" ]]; then
cd $GISSMO_DIR cd $GISSMO_DIR
$docker_cmd build -t gissmo:${GISSMO_VERSION} -f ${DOCKERFILE} || error_and_quit "Failed to build Gissmo Docker container." info "Building Docker images…"
$docker_cmd build -t gissmo:${GISSMO_VERSION} -f ${DOCKERFILE} . || error_and_quit "Failed to build Gissmo Docker container."
info "…done."
cd $CURRENT_DIR cd $CURRENT_DIR
fi fi
# Check postgreSQL Docker container exists and is launched. # Check postgreSQL Docker container exists and is launched.