ansible/test/utils/docker/httptester/packer.json
Matt Martz 9048cf2758 Changes to the httptester docker image to support new client cert functionality in tests (#19912)
* Fix Dockerfile
* Add changes to docker image to support new client cert functionality
* Update repo:tag for docker
2017-01-04 21:07:13 -08:00

44 lines
1.4 KiB
JSON

{
"builders": [
{
"type": "docker",
"image": "nginx:alpine",
"commit": true,
"run_command": [
"-d",
"-i",
"-t",
"{{.Image}}",
"/bin/sh"
]
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"set -x",
"[ -f /sbin/apk ] && /sbin/apk add -U ansible || true",
"[ -f /usr/bin/dnf ] && /usr/bin/dnf -y install ansible python2-dnf || true",
"[ ! -f /usr/bin/dnf -a -f /usr/bin/yum ] && /usr/bin/yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-`grep -o [0-9] /etc/redhat-release | head -1`.noarch.rpm || true",
"[ ! -f /usr/bin/dnf -a -f /usr/bin/yum ] && /usr/bin/yum -y install ansible || true",
"[ -f /usr/bin/apt-get ] && /usr/bin/apt-get update && /usr/bin/apt-get -y install ansible || true"
]
},
{
"type": "ansible-local",
"playbook_file": "httptester.yml",
"playbook_dir": "{{template_dir}}",
"extra_arguments": [
"-v"
]
}
],
"post-processors": [
{
"type": "docker-tag",
"repository": "ansible/ansible",
"tag": "httptester"
}
]
}