We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa228da commit 9ef05f8Copy full SHA for 9ef05f8
Dockerfile
@@ -56,7 +56,7 @@ RUN useradd -ms /bin/bash stolon
56
RUN mkdir -p /run/haproxy/
57
COPY --from=flyutil /fly/bin/* /usr/local/bin/
58
59
-ENV ENV="/fly/set-stolon-environment.sh"
+ENV ENV="/fly/shell-init"
60
61
EXPOSE 5432
62
scripts/set-stolon-environment.sh
scripts/shell-init
@@ -0,0 +1,11 @@
1
+#!/bin/dash
2
+# Dash sources this file according to POSIX envvar $ENV declared in Dockerfile
3
+# https://manpages.debian.org/stretch/dash/dash.1.en.html#Invocation
4
+
5
+if [ -f /data/.env ]; then
6
+ export $(cat /data/.env)
7
+fi
8
9
+# Upgrade to Bash shell
10
+unset ENV
11
+exec /bin/bash "$@"
0 commit comments