|
|
1de3abb |
FROM registry.fedoraproject.org/fedora:28
|
|
|
97576c8 |
MAINTAINER "Stef Walter" <stefw@redhat.com>
|
|
|
7bc1c4e |
|
|
|
f19ffa7 |
ENV VERSION=0 RELEASE=1
|
|
|
7bc1c4e |
LABEL BZComponent="cockpit" \
|
|
|
3023224 |
Name="$FGC/cockpit" \
|
|
|
97576c8 |
Version="$VERSION" \
|
|
|
3023224 |
Release="$RELEASE.$DISTTAG" \
|
|
|
97576c8 |
Architecture="x86_64"
|
|
|
7bc1c4e |
|
|
|
7bc1c4e |
|
|
|
1de3abb |
RUN dnf install -y cockpit-ws cockpit-dashboard && \
|
|
|
1de3abb |
mkdir -p /container && ln -s /host/proc/1 /container/target-namespace && \
|
|
|
1de3abb |
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
|
|
|
1de3abb |
|
|
|
1de3abb |
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"]
|