a693bb7
FROM fedora:24
7bc1c4e
MAINTAINER "Adam Miller" <maxamillion@fedoraproject.org>
7bc1c4e
38d9d4a
ENV NAME=cockpit VERSION=0.117 RELEASE=1.8
7bc1c4e
LABEL BZComponent="cockpit" \
a693bb7
	Name="$FGC/$NAME" \
7bc1c4e
	Version="$VERSION" \
a693bb7
	Release="$RELEASE.$DISTTAG" \
7bc1c4e
	Architecture="x86_64"
7bc1c4e
a693bb7
RUN dnf install -y $NAME
7bc1c4e
7bc1c4e
# And the stuff that starts the container
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
7bc1c4e
LABEL INSTALL /usr/bin/docker run -ti --rm --privileged -v /:/host IMAGE /container/atomic-install
7bc1c4e
LABEL UNINSTALL /usr/bin/docker run -ti --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"]