-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.puppet
31 lines (23 loc) · 1000 Bytes
/
Dockerfile.puppet
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
FROM ubuntu:16.04
MAINTAINER Hedi Nasr "h.nsr69@gmail.com"
ENV UBUNTU_CODENAME="xenial" PUPPETSERVER_JAVA_ARGS="-Xms256m -Xmx256m"
ENV PATH=/opt/puppetlabs/server/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:$PATH
RUN apt-get update && \
apt-get install -y ca-certificates wget git && \
wget https://apt.puppetlabs.com/puppetlabs-release-pc1-"$UBUNTU_CODENAME".deb && \
dpkg -i puppetlabs-release-pc1-"$UBUNTU_CODENAME".deb && \
apt-get update && \
rm puppetlabs-release-pc1-"$UBUNTU_CODENAME".deb && \
apt-get install --no-install-recommends -y puppetserver && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY puppetserver /etc/default/puppetserver
RUN puppet config set autosign true --section master
VOLUME /etc/puppetlabs/code/ \
/etc/puppetlabs/puppet/ssl/ \
/opt/puppetlabs/server/data/puppetserver/ \
/etc/puppetlabs/r10k/
COPY ./docker-entrypoint.sh /
EXPOSE 8140
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["foreground"]