FROM ubuntu:16.04 LABEL maintainer="OpenDaylight Integration Project Team " # Schema: https://github.com/projectatomic/ContainerApplicationGenericLabels LABEL name="Int/Pack OpenStack Systemd Base Node" \ version="0.1" \ vendor="OpenDaylight" \ summary="OpenStack systemd base node for scale testing" \ vcs-url="https://git.opendaylight.org/gerrit/p/integration/packaging.git" ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \ DEBIAN_FRONTEND=noninteractive \ container=docker # Start ignoring DockerfileLintBear RUN find /etc/systemd/system \ /lib/systemd/system \ -path '*.wants/*' \ -not -name '*journald*' \ -not -name '*systemd-tmpfiles*' \ -not -name '*systemd-user-sessions*' \ -exec rm \{} \; RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in $(ls *); do [ "$i" = systemd-tmpfiles-setup.service ] || rm -f $i; 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/basic.target.wants/* # Stop ignoring RUN systemctl set-default multi-user.target VOLUME [ "/sys/fs/cgroup" ] CMD ["/sbin/init"] # vim: set ft=dockerfile sw=4 ts=4 :