Blame Dockerfile

fe8becb
FROM registry.fedoraproject.org/fedora:26
97576c8
MAINTAINER "Stef Walter" <stefw@redhat.com>
7bc1c4e
33cb33f
ENV VERSION=135 RELEASE=8
7bc1c4e
LABEL BZComponent="cockpit" \
3023224
        Name="$FGC/cockpit" \
97576c8
        Version="$VERSION" \
3023224
        Release="$RELEASE.$DISTTAG" \
97576c8
        Architecture="x86_64"
7bc1c4e
7bc1c4e
petervo 4719ef1
RUN dnf install -y cockpit-ws cockpit-dashboard
petervo 4719ef1
7bc1c4e
RUN mkdir -p /container && ln -s /host/proc/1 /container/target-namespace
7bc1c4e
ADD atomic-install /container/atomic-install
7bc1c4e
ADD atomic-uninstall /container/atomic-uninstall
7bc1c4e
ADD atomic-run /container/atomic-run
7bc1c4e
RUN chmod -v +x /container/atomic-install
7bc1c4e
RUN chmod -v +x /container/atomic-uninstall
7bc1c4e
RUN chmod -v +x /container/atomic-run
7bc1c4e
7bc1c4e
# Make the container think it's the host OS version
7bc1c4e
RUN rm -f /etc/os-release /usr/lib/os-release && ln -sv /host/etc/os-release /etc/os-release && ln -sv /host/usr/lib/os-release /usr/lib/os-release
7bc1c4e
petervo 4719ef1
LABEL INSTALL /usr/bin/docker run --rm --privileged -v /:/host IMAGE /container/atomic-install
petervo 4719ef1
LABEL UNINSTALL /usr/bin/docker run --rm --privileged -v /:/host IMAGE /container/atomic-uninstall
7bc1c4e
LABEL RUN /usr/bin/docker run -d --privileged --pid=host -v /:/host IMAGE /container/atomic-run --local-ssh
7bc1c4e
7bc1c4e
# Look ma, no EXPOSE
7bc1c4e
7bc1c4e
CMD ["/container/atomic-run"]