Idea #9955 » Dockerfile
1 |
FROM centos/systemd |
---|---|
2 |
|
3 |
MAINTAINER nico@nicocesar.com |
4 |
|
5 |
|
6 |
|
7 |
# Make systemd aware of being run in container
|
8 |
ENV container docker |
9 |
|
10 |
# Reduce the amount of space wasted by journals
|
11 |
RUN sed -ir "s/#SystemMaxUse=.*/SystemMaxUse=50M/" /etc/systemd/journald.conf |
12 |
|
13 |
# Make sure dbus is not killed
|
14 |
RUN yum install -y dbus \ |
15 |
&& sed -i -e "s/OOMScoreAdjust/# OOMScoreAdjust/" /usr/lib/systemd/system/dbus.service |
16 |
|
17 |
|
18 |
# Export those available to run systemd as init daemon
|
19 |
VOLUME ["/sys/fs/cgroup", "/run", "/tmp"] |
20 |
|
21 |
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 1078ECD7 ; gpg --armor --export 1078ECD7 >/tmp/curoverse.key ; rpm --import /tmp/curoverse.key |
22 |
COPY arvados.repo /etc/yum.repos.d/arvados.repo |
23 |
RUN yum -y install keepproxy; yum clean all; systemctl enable keepproxy.service |
24 |
|
25 |
EXPOSE 80 |
26 |
|
27 |
CMD ["/usr/sbin/init"] |