summaryrefslogtreecommitdiffstats
path: root/roles/docker_img_puppet/files/puppet_container/Dockerfile
blob: e16536c03025163aed742e487e0f9d2164255cd4 (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
33
34
35
36
37
38
# 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

# this is needed so that we can run puppet without running the start script
RUN mkdir -p /etc/haproxy

# Setup libra_ops group for compatibility with host puppet
RUN groupadd libra_ops

# 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"]