Skip to content

Commit

Permalink
Merge pull request #37 from Segelzwerg/fix/docker_pull_fail
Browse files Browse the repository at this point in the history
FIX: raise error on missing docker image
  • Loading branch information
marcuspoehls authored Aug 27, 2022
2 parents 538a4d2 + d063ea2 commit b9230e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions start-mongodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ echo " - replica set [$MONGODB_REPLICA_SET]"
echo ""

docker run --name mongodb --publish $MONGODB_PORT:$MONGODB_PORT --detach mongo:$MONGODB_VERSION --replSet $MONGODB_REPLICA_SET --port $MONGODB_PORT
if [ $? -ne 0 ]; then
echo "Error starting docker"
exit 2
fi
echo "::endgroup::"


Expand Down

0 comments on commit b9230e6

Please sign in to comment.