31 lines
1.2 KiB
Docker
31 lines
1.2 KiB
Docker
FROM registry.fedoraproject.org/fedora:25
|
|
MAINTAINER "Stef Walter" <stefw@redhat.com>
|
|
|
|
ENV VERSION=135 RELEASE=6
|
|
LABEL BZComponent="cockpit" \
|
|
Name="$FGC/cockpit" \
|
|
Version="$VERSION" \
|
|
Release="$RELEASE.$DISTTAG" \
|
|
Architecture="x86_64"
|
|
|
|
|
|
RUN dnf install -y cockpit-ws cockpit-dashboard
|
|
|
|
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 --rm --privileged -v /:/host IMAGE /container/atomic-install
|
|
LABEL UNINSTALL /usr/bin/docker run --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"]
|