Blame Dockerfile

8f01b0e
FROM registry.fedoraproject.org/fedora:29
97576c8
MAINTAINER "Stef Walter" <stefw@redhat.com>
7bc1c4e
923efd2
ENV VERSION=181
7bc1c4e
LABEL BZComponent="cockpit" \
3023224
        Name="$FGC/cockpit" \
97576c8
        Version="$VERSION" \
97576c8
        Architecture="x86_64"
7bc1c4e
7bc1c4e
8511961
RUN dnf install -y cockpit-ws cockpit-dashboard cockpit-bridge && \
8f01b0e
    mkdir -p /container && ln -s /host/proc/1 /container/target-namespace && \
8f01b0e
    dnf clean all
petervo 47960ad
7bc1c4e
ADD atomic-install /container/atomic-install
7bc1c4e
ADD atomic-uninstall /container/atomic-uninstall
7bc1c4e
ADD atomic-run /container/atomic-run
8f01b0e
8f01b0e
RUN chmod -v +x /container/atomic-install /container/atomic-uninstall /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 47960ad
LABEL INSTALL /usr/bin/docker run --rm --privileged -v /:/host IMAGE /container/atomic-install
petervo 47960ad
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"]