summaryrefslogtreecommitdiffstats
path: root/roles/docker_img_puppet/files/puppet_container/Dockerfile
blob: 0bc72d389d604b8090ef034be330e64cb2ebeb8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This FROM gives us the proper oo-rhui certs, basic runtime env vars, basic repos, etc.
# Otherwise we can't install anything
FROM rhel6ops

MAINTAINER Thomas Wiest <twiest@redhat.com>

RUN yum -y update ; yum clean all

# Container Specific RPMs
RUN yum -y install puppet3 crontabs cronie-anacron cronie system-config-firewall-base httpd mod_ssl ruby193-rubygem-zbxapi mod_security rhc-site-static; yum clean all

# BEGIN: These are to fake out puppet

RUN rm /usr/sbin/lokkit ; ln -s /bin/true /usr/sbin/lokkit

# END: These are to fake out puppet

# Container specific files
ADD start.rb /usr/local/sbin/start.rb
ADD service.rb /sbin/service

# Ensure the scripts are executable
RUN chmod 755 /sbin/service /usr/local/sbin/start.rb

RUN yum -y install strace ; yum clean all

# Get rid of puppet deprecation warnings
RUN sed -i 's/^.*manifest =.*$//' /etc/puppet/puppet.conf ; \
    sed -i 's/^.*manifestdir =.*$//' /etc/puppet/puppet.conf ; \
    sed -i 's/^.*modulepath =.*$//' /etc/puppet/puppet.conf

CMD ["/usr/local/sbin/start.rb"]