|
|
eba037c |
FROM registry.fedoraproject.org/fedora:25
|
|
|
eba037c |
MAINTAINER "Stef Walter" <stefw@redhat.com>
|
|
|
eba037c |
|
|
|
c329277 |
ENV VERSION=135 RELEASE=14
|
|
|
eba037c |
LABEL BZComponent="cockpit" \
|
|
|
eba037c |
Name="$FGC/cockpit" \
|
|
|
eba037c |
Version="$VERSION" \
|
|
|
eba037c |
Release="$RELEASE.$DISTTAG" \
|
|
|
eba037c |
Architecture="x86_64"
|
|
|
eba037c |
|
|
|
eba037c |
|
|
petervo |
588879a |
RUN dnf install -y cockpit-ws cockpit-dashboard
|
|
petervo |
588879a |
|
|
|
eba037c |
RUN mkdir -p /container && ln -s /host/proc/1 /container/target-namespace
|
|
|
eba037c |
ADD atomic-install /container/atomic-install
|
|
|
eba037c |
ADD atomic-uninstall /container/atomic-uninstall
|
|
|
eba037c |
ADD atomic-run /container/atomic-run
|
|
|
eba037c |
RUN chmod -v +x /container/atomic-install
|
|
|
eba037c |
RUN chmod -v +x /container/atomic-uninstall
|
|
|
eba037c |
RUN chmod -v +x /container/atomic-run
|
|
|
eba037c |
|
|
|
eba037c |
# Make the container think it's the host OS version
|
|
|
eba037c |
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
|
|
|
eba037c |
|
|
petervo |
588879a |
LABEL INSTALL /usr/bin/docker run --rm --privileged -v /:/host IMAGE /container/atomic-install
|
|
petervo |
588879a |
LABEL UNINSTALL /usr/bin/docker run --rm --privileged -v /:/host IMAGE /container/atomic-uninstall
|
|
|
eba037c |
LABEL RUN /usr/bin/docker run -d --privileged --pid=host -v /:/host IMAGE /container/atomic-run --local-ssh
|
|
|
eba037c |
|
|
|
eba037c |
# Look ma, no EXPOSE
|
|
|
eba037c |
|
|
|
eba037c |
CMD ["/container/atomic-run"]
|