Project

General

Profile

Idea #9955 » Dockerfile

Nico César, 09/28/2016 02:02 PM

 
FROM centos/systemd

MAINTAINER nico@nicocesar.com



# Make systemd aware of being run in container
ENV container docker

# Reduce the amount of space wasted by journals
RUN sed -ir "s/#SystemMaxUse=.*/SystemMaxUse=50M/" /etc/systemd/journald.conf

# Make sure dbus is not killed
RUN yum install -y dbus \
&& sed -i -e "s/OOMScoreAdjust/# OOMScoreAdjust/" /usr/lib/systemd/system/dbus.service


# Export those available to run systemd as init daemon
VOLUME ["/sys/fs/cgroup", "/run", "/tmp"]

RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 1078ECD7 ; gpg --armor --export 1078ECD7 >/tmp/curoverse.key ; rpm --import /tmp/curoverse.key
COPY arvados.repo /etc/yum.repos.d/arvados.repo
RUN yum -y install keepproxy; yum clean all; systemctl enable keepproxy.service

EXPOSE 80

CMD ["/usr/sbin/init"]
(1-1/2)