We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ada565 commit c86e388Copy full SHA for c86e388
dev-entrypoint.sh
@@ -0,0 +1,7 @@
1
+#!/bin/sh
2
+while ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; do
3
+ echo "Waiting for Git to be ready..."
4
+ sleep 1
5
+done
6
+# Pass control to main container command
7
+exec "$@"
dev.Dockerfile
@@ -31,3 +31,6 @@ RUN git config --global --add safe.directory /var/cartography && \
31
git config --local user.name "cartography"
32
33
USER ${uid}:${gid}
34
+
35
+# Wait for git to be ready before running anything else. Fix race condition.
36
+ENTRYPOINT ["/var/cartography/dev-entrypoint.sh"]
0 commit comments