add coreos base image

Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
Jess Frazelle 2016-04-12 19:32:58 -07:00
parent 23c5502df4
commit 834fcab5a8
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
3 changed files with 1690 additions and 0 deletions

37
coreos/Dockerfile Normal file
View File

@ -0,0 +1,37 @@
# coreos base container
#
# docker run --rm -it \
# --cap-add SYS_ADMIN \
# --security-opt seccomp:/path/to/systemd-seccomp.json \
# --tmpfs /run:rw --tmpfs /tmp:rw \
# -e "container=coreos-rootfs" \
# -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
# jess/coreos
FROM scratch
ENV container=docker
ADD coreos-766.5.0.tar.xz /
RUN ( \
cd /lib/systemd/system/sysinit.target.wants/; \
for i in *; do \
if [ "$i" != "systemd-tmpfiles-setup.service" ]; then \
rm -f $i; \
fi \
done \
) \
&& rm -f /lib/systemd/system/multi-user.target.wants/* \
&& rm -f /etc/systemd/system/*.wants/* \
&& rm -f /lib/systemd/system/local-fs.target.wants/* \
&& rm -f /lib/systemd/system/sockets.target.wants/*udev* \
&& rm -f /lib/systemd/system/sockets.target.wants/*initctl* \
&& rm -f /lib/systemd/system/anaconda.target.wants/* \
&& rm -f /lib/systemd/system/basic.target.wants/* \
&& rm -f /lib/systemd/system/graphical.target.wants/* \
&& ln -vf /lib/systemd/system/multi-user.target /lib/systemd/system/default.target
# systemd needs a different stop signal
STOPSIGNAL SIGRTMIN+3
CMD ["/sbin/init"]

Binary file not shown.

1653
coreos/systemd-seccomp.json Executable file

File diff suppressed because it is too large Load Diff