Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhsradek committed Feb 3, 2023
1 parent b18c851 commit 13b05a6
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions bin/start
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,4 @@ if [[ -f "$rootPath/docker-compose.extras.yml" ]]; then
ARGS="$ARGS -f $rootPath/docker-compose.extras.yml"
fi

IMG="lhsradek/tombola:v1"
IMGFILE="tombola-v1.img"
if !(docker-compose ${ARGS} pull); then
if !(docker image inspect "${IMG}" >/dev/null 2>&1); then
if [[ ! -f "$rootPath/${IMGFILE}" ]]; then
docker-compose ${ARGS} build --no-cache --force-rm
docker save -o ${IMGFILE} ${IMG}
docker image rm ${IMG}
docker container prune -f
fi
if (docker load -i ${IMGFILE}); then
echo "An image file:'${IMGFILE}' is loaded.."
fi
docker push ${IMG} # !
fi
docker-compose ${ARGS} pull # !
fi
docker-compose ${ARGS} up -d

0 comments on commit 13b05a6

Please sign in to comment.