Skip to content
Permalink
Browse files

Set faux systemctl as CMD / PID-1

  • Loading branch information...
Cat5TV committed Aug 19, 2019
1 parent 0e0350a commit 11db5d8c794466f89bfe56b15a87ef203043b20e
Showing with 2 additions and 1 deletion.
  1. +2 −1 notes/docker/image/Dockerfile
@@ -15,7 +15,7 @@ RUN apt-get update && \
RUN apt-get update && \
apt-get install -y ca-certificates wget ssl-cert git unzip make python3

# Setup faux systemctl
# Setup faux systemctl environment
RUN wget -O /tmp/systemctl.zip https://github.com/gdraheim/docker-systemctl-replacement/archive/v1.4.3000.zip && \
cd /tmp && \
unzip systemctl.zip && \
@@ -24,6 +24,7 @@ RUN wget -O /tmp/systemctl.zip https://github.com/gdraheim/docker-systemctl-repl
mv ./files/docker/systemctl3.py /usr/local/bin/ && \
chmod +x /usr/local/bin/systemctl3.py && \
ln -s /usr/local/bin/systemctl3.py /bin/systemctl
CMD /bin/systemctl

RUN /usr/sbin/make-ssl-cert generate-default-snakeoil --force-overwrite

0 comments on commit 11db5d8

Please sign in to comment.
You can’t perform that action at this time.