From eba037c9745cca4c120ad29421232d1621917b18 Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Feb 20 2017 21:05:00 +0000 Subject: Revert "Bump RELEASE for automatic rebuild" This reverts commit 1813a1a515b2b4ba1b4da5326bb7ad8cfc3174a2. Testing automatic rebuild script, there is clearly a bug. --- diff --git a/Dockerfile b/Dockerfile index e69de29..a4b75b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,31 @@ +FROM registry.fedoraproject.org/fedora:25 +MAINTAINER "Stef Walter" + +ENV VERSION=130 RELEASE=1 +LABEL BZComponent="cockpit" \ + Name="$FGC/cockpit" \ + Version="$VERSION" \ + Release="$RELEASE.$DISTTAG" \ + Architecture="x86_64" + +RUN dnf install -y cockpit-ws + +# And the stuff that starts the container +RUN mkdir -p /container && ln -s /host/proc/1 /container/target-namespace +ADD atomic-install /container/atomic-install +ADD atomic-uninstall /container/atomic-uninstall +ADD atomic-run /container/atomic-run +RUN chmod -v +x /container/atomic-install +RUN chmod -v +x /container/atomic-uninstall +RUN chmod -v +x /container/atomic-run + +# Make the container think it's the host OS version +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 + +LABEL INSTALL /usr/bin/docker run -ti --rm --privileged -v /:/host IMAGE /container/atomic-install +LABEL UNINSTALL /usr/bin/docker run -ti --rm --privileged -v /:/host IMAGE /container/atomic-uninstall +LABEL RUN /usr/bin/docker run -d --privileged --pid=host -v /:/host IMAGE /container/atomic-run --local-ssh + +# Look ma, no EXPOSE + +CMD ["/container/atomic-run"]