Created
March 18, 2019 15:04
-
-
Save hypery2k/a09c3b0ffad28bb7c229bd32e8c7e1aa to your computer and use it in GitHub Desktop.
Packer build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"builders": [{ | |
"type": "docker", | |
"image": "jenkinsci/ssh-slave:latest", | |
"commit": true, | |
"changes": [ | |
"VOLUME /data", | |
"WORKDIR /data", | |
"EXPOSE 6379", | |
"ENTRYPOINT [\"docker-entrypoint.sh\"]", | |
"CMD [\"redis-server\"]" | |
] | |
}], | |
"provisioners":[{ | |
"type": "ansible", | |
"user": "root", | |
"playbook_file": "ansible/playbook.yml", | |
"extra_arguments": [ "-v" ] | |
} | |
], | |
"post-processors": [[ { | |
"type": "docker-tag", | |
"repository": "hypery2k/packer-openshift-demo", | |
"tag": "latest" | |
} ]] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment