Skip to content

Commit e99146d

Browse files
author
QuadStingray
committed
fix: check database is reachable
1 parent f9e11a5 commit e99146d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.gitpod.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM gitpod/workspace-full
2+
3+
RUN brew install act

.gitpod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
33
# and commit this file to your remote git repository to share the goodness with others.
44

5+
image:
6+
file: .gitpod.Dockerfile
7+
58
jetbrains:
69
intellij:
710
plugins:

entrypoint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ then
2121
fi
2222

2323
if [[ ${MONGO_SHELL_COMMAND} != 'mongosh' ]]; then
24-
MONGO_SHELL_COMMAND="${MONGO_SHELL_COMMAND} --quiet"
24+
MONGO_SHELL_COMMAND="${MONGO_SHELL_COMMAND} --quiet "
2525
fi
2626

2727
echo "Waiting for MongoDB to accept connections"
2828
sleep 1
2929
TIMER=0
3030

31-
until docker exec --tty mongodb /bin/bash -c ""$MONGO_SHELL_COMMAND --port 27017 --eval "db.serverStatus() &> /dev/null"
31+
until docker exec --tty mongodb /bin/bash -c "$MONGO_SHELL_COMMAND --port 27017 --eval 'true'"
3232
do
3333
sleep 1
3434
echo "."
@@ -39,3 +39,5 @@ do
3939
exit 2
4040
fi
4141
done
42+
43+
echo "Start you tests"

0 commit comments

Comments
 (0)