Skip to content
Permalink
Browse files

systemctl working on PID-1

  • Loading branch information...
Cat5TV committed Aug 19, 2019
1 parent 26d5767 commit 70bfdb43e66d3a47a659e7bd62aa6f5e66464f3a
Showing with 12 additions and 3 deletions.
  1. +7 −0 build/006-resolvconf
  2. +3 −3 notes/docker/image/Dockerfile
  3. +2 −0 notes/docker/image/files/nemsdocker
@@ -0,0 +1,7 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

# Remove resolvconf
# No longer used in NEMS Linux, and causes grief in Docker if installed
# So this script is just to ensure it is NOT installed before continuing
apt -y remove --purge resolvconf
@@ -25,7 +25,9 @@ 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
ADD files/nemsdocker /usr/local/bin/nemsdocker
RUN chmod +x /usr/local/bin/nemsdocker
CMD ["/bin/bash", "-c", "/bin/systemctl"]

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

@@ -43,5 +45,3 @@ EXPOSE 443/tcp
EXPOSE 2812/tcp
# cockpit
EXPOSE 9090/tcp

ENTRYPOINT ["exec /bin/systemctl"]
@@ -0,0 +1,2 @@
#!/bin/bash
exec /usr/local/bin/nemsdocker

0 comments on commit 70bfdb4

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