-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
38 lines (33 loc) · 1003 Bytes
/
Dockerfile
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
# Install PuppetDB Server
FROM centos:centos6
MAINTAINER Tim Hartmann <tfhartmann@gmail.com>
RUN yum install epel-release -y && \
yum install http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm -y && \
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm -y && \
yum install -y puppet \
apt-mirror \
tar \
hardlink \
hostname \
wget \
unzip \
rsync \
python-pip \
fuse \
yum-utils \
fuse-iso && \
yum clean all
RUN mkdir -p /etc/mrepo.conf.d
RUN mkdir -p /mrepo/www
RUN puppet module install puppetlabs-mrepo
ADD conf/init.pp /tmp/init.pp
RUN puppet apply /tmp/init.pp --verbose
RUN chown -R apache:apache /mrepo
RUN echo 'set dns:order "inet inet6"' >> /etc/lftp.conf
ADD conf/mrepo.conf /etc/mrepo.conf
ADD conf/repos.conf /etc/mrepo.conf.d/repos.conf
ADD scripts/run-mrepo.sh /tmp/run-mrepo.sh
# Run MRepo and/or apache
CMD [ "/tmp/run-mrepo.sh" ]
# Expose Web ports
EXPOSE 80