Install Puppet as Docker CLI image

55 views
Skip to first unread message

Justin Jackson

unread,
Oct 19, 2015, 7:37:05 PM10/19/15
to Puppet Users
Hi all, 

I am trying to set up the standalone puppet as a docker image to be used as a CLI. I am doing this so that my colleagues and I can share the same "environment" for running puppet on our different platforms of choice. We are using Mac, Linux (Ubuntu 14+) and Windows (8 and 10). We basically run puppet apply <file>.pp. My Dockerfile is pretty simple up till now:

RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential && \
apt-get install -y software-properties-common && \
apt-get install -y byobu curl git unzip wget && \
rm -rf /var/lib/apt/lists/*

RUN apt-get -y install rubygems
RUN echo "gem: --no-ri --no-rdoc" > ~/.gemrc
RUN gem install puppet librarian-puppet

 However, when we try to run puppet against our .pp files, we are seeing some issues such as something to do with plist.. and we can't yet get our created docker image to "apply" a simple test.pp. 

Are there other libraries we would need to install perhaps? I would have thought the librarian-puppet does the trick.. or maybe there is some configuration we need to adjust?

Thanks for any help.

Vikas Kumar

unread,
Oct 19, 2015, 11:38:59 PM10/19/15
to Puppet Users
Hi Jackson,

Try to run it with '--debug' switch, may be it shows something useful.

Regards,
Vikas

Corey Osman

unread,
Oct 20, 2015, 11:45:23 AM10/20/15
to Puppet Users
I maintain some public docker images geared towards puppet development.   They are based off of centos, and use gems to install puppet. 

Reply all
Reply to author
Forward
0 new messages