File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,16 @@ ENV WALG_VERSION=${WALG_VERSION:-0.2.15}
10
10
11
11
# Install dependecies.
12
12
RUN apt-get update \
13
- && apt-get install --no-install-recommends -y ca-certificates wget daemontools \
13
+ && apt-get install --no-install-recommends -y ca-certificates wget daemontools sudo \
14
14
&& wget --quiet -O /tmp/wal-g.linux-amd64.tar.gz "https://github.com/wal-g/wal-g/releases/download/v${WALG_VERSION}/wal-g.linux-amd64.tar.gz" \
15
15
&& tar -zxvf /tmp/wal-g.linux-amd64.tar.gz && mv wal-g /usr/local/bin/ \
16
16
&& rm -rf /tmp/* \
17
17
&& apt-get purge -y --auto-remove \
18
18
&& apt-get clean -y autoclean \
19
19
&& rm -rf /var/lib/apt/lists/*
20
+
21
+ # Prepare Postgres start script.
22
+ RUN echo "#!/bin/bash" > /pg_start.sh && chmod a+x /pg_start.sh \
23
+ && echo "/bin/bash -c \" trap : TERM INT; sleep infinity & wait\" " >> /pg_start.sh
24
+
25
+ CMD ["/pg_start.sh" ]
You can’t perform that action at this time.
0 commit comments