Compare commits

...
Sign in to create a new pull request.

16 commits

Author SHA1 Message Date
Mohan Boddu
386a0f9176 "Bump RELEASE for automatic rebuild" 2018-03-15 14:39:58 +00:00
Adam Miller
c3b05afaaf Bump RELEASE for automatic rebuild 2017-11-14 14:17:38 -06:00
Patrick Uiterwijk
8b0861c60d bump RELEASE to run test build (OSBS broke) 2017-10-07 03:31:48 +02:00
Patrick Uiterwijk
c48503c7d5 bump RELEASE to run test build (OSBS broke) 2017-10-07 03:16:32 +02:00
Patrick Uiterwijk
fb80ac4c96 bump RELEASE to run test build (OSBS broke)
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-10-07 00:45:28 +02:00
Adam Miller
de853df754 bump RELEASE to run test build (OSBS broke) 2017-10-06 16:08:07 -05:00
Adam Miller
79db7e6a9b bump RELEASE to run test build (OSBS broke) 2017-10-06 12:05:40 -05:00
Adam Miller
648927bd5f bump RELEASE to run test build (OSBS broke) 2017-10-05 08:05:18 -05:00
Adam Miller
33cb33fa4c bump RELEASE to run test build (OSBS broke) 2017-10-03 14:40:54 -05:00
Adam Miller
aec6ea2223 bump RELEASE to run test build (OSBS broke) 2017-10-03 10:19:22 -05:00
Adam Miller
19d738deb8 bump RELEASE to run test build (OSBS broke) 2017-10-02 16:22:18 -05:00
Adam Miller
4105401fa4 bump RELEASE to run test build (OSBS broke) 2017-10-02 15:10:26 -05:00
Adam Miller
e2ad996a6d Bump RELEASE for automatic rebuild 2017-09-21 14:02:04 -05:00
Adam Miller
2a72f87e68 Bump RELEASE for automatic rebuild 2017-08-24 16:54:42 -05:00
Adam Miller
cbe5029fac Bump RELEASE for automatic rebuild 2017-07-25 16:19:03 -05:00
petervo
4719ef1498 Update for cockpit 135 2017-03-23 15:05:42 -07:00
4 changed files with 14 additions and 10 deletions

View file

@ -1,16 +1,16 @@
FROM registry.fedoraproject.org/fedora:26
MAINTAINER "Stef Walter" <stefw@redhat.com>
ENV VERSION=125 RELEASE=1.6
ENV VERSION=135 RELEASE=16
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 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
@ -22,8 +22,8 @@ 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 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

View file

@ -17,7 +17,7 @@ if [ ! -f /host/usr/bin/cockpit-bridge ]; then
exit 1
fi
if [ ! -d /host/usr/share/cockpit ]; then
echo "cockpit-run: cockpit-shell and other resources must be installed in the host" >&2
echo "cockpit-run: cockpit-system and other resources must be installed in the host" >&2
exit 1
fi
if [ -f /host/usr/libexec/cockpit-ws ]; then
@ -34,14 +34,17 @@ set -x
sed -e '/pam_selinux/d' -e '/pam_sepermit/d' /etc/pam.d/cockpit > /host/etc/pam.d/cockpit
# Make sure that we have required directories in the host
mkdir -p /host/etc/cockpit/ws-certs.d
chmod 755 /host/etc/cockpit/ws-certs.d
chown root:root /host/etc/cockpit/ws-certs.d
mkdir -p /host/etc/cockpit/ws-certs.d /host/etc/cockpit/machines.d
chmod 755 /host/etc/cockpit/ws-certs.d /host/etc/cockpit/machines.d
chown root:root /host/etc/cockpit/ws-certs.d /host/etc/cockpit/machines.d
mkdir -p /host/var/lib/cockpit
chmod 775 /host/var/lib/cockpit
chown root:wheel /host/var/lib/cockpit
# For sharing ssh's known hosts with container
mkdir -p /etc/ssh
# Ensure we have certificates
/bin/mount --bind /host/etc/cockpit /etc/cockpit
/usr/sbin/remotectl certificate --ensure

View file

@ -15,6 +15,7 @@ set +x
/bin/mount --bind /host/usr/share/pixmaps /usr/share/pixmaps
/bin/mount --bind /host/var /var
/bin/mount --bind /host/etc/ssh /etc/ssh
# And run cockpit-ws
exec /usr/bin/nsenter --net=/container/target-namespace/ns/net --uts=/container/target-namespace/ns/uts -- /usr/libexec/cockpit-ws "$@"

View file

@ -16,7 +16,7 @@ if [ ! -f /host/usr/bin/cockpit-bridge ]; then
exit 1
fi
if [ ! -d /host/usr/share/cockpit ]; then
echo "cockpit-shell and other resources must be installed in the host" >&2
echo "cockpit-system and other resources must be installed in the host" >&2
exit 1
fi
if [ -f /host/usr/libexec/cockpit-ws ]; then