Skip to content
Permalink
Browse files

System Prep complete

  • Loading branch information...
RobbieF committed Aug 18, 2019
1 parent a414baf commit 5156146f863ed4bb8c0b4d9c766f2138fc059ee7
Showing with 14 additions and 21 deletions.
  1. +14 −21 notes/docker/image/Dockerfile
@@ -6,35 +6,28 @@ ENV DEBIAN_FRONTEND noninteractive

MAINTAINER Robbie Ferguson <nems@category5.tv>

# add contrib, non-free and backports repositories
# Setup apt
ADD sources.list /etc/apt/sources.list

RUN apt-get update && \
apt-get install -y apt-utils

# Install a few prerequisites
RUN apt-get update && \
apt-get install -y systemd \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
/lib/systemd/system/systemd-update-utmp*


RUN apt-get update && \
apt-get install -y ca-certificates wget ssl-cert git
apt-get install -y ca-certificates wget ssl-cert git unzip make python3

# Setup faux systemctl
RUN 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 ./files/docker/systemctl3.py /usr/local/bin/ && \
chmod +x /usr/local/bin/systemctl3.py && \
ln -s /usr/local/bin/systemctl3.py /usr/local/sbin/systemctl


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

VOLUME [ "/sys/fs/cgroup" ]

CMD ["/lib/systemd/systemd"]

RUN wget --no-check-certificate -O /tmp/nems-prep.sh https://raw.githubusercontent.com/Cat5TV/nems-admin/master/nems-prep.sh && \
chmod +x /tmp/nems-prep.sh && \
/tmp/nems-prep.sh

0 comments on commit 5156146

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