Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Commit f26a350

Browse files
Merge pull request #2 from carlobeltrame/fix-wagon-setup
Fix wagon setup
2 parents 5d6f00f + bdf60a5 commit f26a350

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.docker/entrypoint

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
set +e
44

5+
if [ ! -f "./Wagonfile" ]; then
6+
echo "⚙ Creating Wagonfile from defaults because it doesn't exist yet"
7+
cp ./Wagonfile.ci ./Wagonfile
8+
echo "✅ Created Wagonfile"
9+
else
10+
echo "↪️ Leaving existing Wagonfile as it is"
11+
fi
12+
513
echo "⚙️ Testing DB connection"
614
timeout 300s waitfortcp "${RAILS_DB_HOST-db}" "${RAILS_DB_PORT-3306}"
715
echo "✅ DB is ready"

0 commit comments

Comments
 (0)