Skip to content
Permalink
Browse files

Continue working around systemd woes

  • Loading branch information...
Cat5TV committed Aug 21, 2019
1 parent b9274a6 commit db11b78876cc8987c737462bdd83f0d0a47a3274
Showing with 7 additions and 4 deletions.
  1. +2 −0 build/036-php
  2. +5 −4 notes/docker/stages/01/Dockerfile
@@ -56,3 +56,5 @@ apt install -y $repo php7.3-sybase
echo "Done."

/bin/systemctl restart apache2

exit 0
@@ -18,16 +18,17 @@ RUN apt-get update && \
RUN apt-get update && \
apt-get install -y ca-certificates wget ssl-cert git unzip make python3 procps

# Setup faux systemctl environment
RUN wget -O /tmp/systemctl.zip https://github.com/gdraheim/docker-systemctl-replacement/archive/v1.4.3000.zip && \
# Setup faux systemd environment
RUN apt-get remove --purge systemd && \
wget -O /tmp/systemctl.zip https://github.com/gdraheim/docker-systemctl-replacement/archive/v1.4.3000.zip && \
cd /tmp && \
unzip systemctl.zip && \
cd docker-systemctl-replacement* && \
make && \
mv -f ./files/docker/systemctl3.py /usr/bin/ && \
chmod +x /usr/bin/systemctl3.py && \
ln -s /usr/bin/systemctl3.py /usr/bin/systemctl
RUN test -L /bin/systemctl || ln -sf /usr/bin/systemctl /bin/systemctl
ln -s /usr/bin/systemctl3.py /usr/bin/systemctl && \
ln -s /usr/bin/systemctl /bin/systemctl

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

0 comments on commit db11b78

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