- Install r10k
bundle install
- Install the puppetfile
cd puppet/
r10k puppetfile install
- Set your environment for exporting the docker image to docker hub
create a set_env.sh file similar to the following at the top of the repo
cat << EOF > set_env.sh
export DOCKERHUB_EMAIL="MY_EMAIL"
export DOCKERHUB_USERNAME="DH_USERNAME"
export DOCKERHUB_PASSWORD="DH_PASSWD"
export DOCKERHUB_SERVER="index.docker.io"
EOF
. ./set_env.sh
- Build using packer
sudo packer build packer.json
- Running the container
docker pull maguec/packer-puppet-example
docker run --name test123 maguec/packer-puppet-example "/bin/ps"