You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/utils/docker/httptester
Matt Martz b79bf14607 Add playbook and packer file for building httptester (#18107) 8 years ago
..
Dockerfile
README.rst
httptester.yml
nginx.sites.conf
packer.json
services.sh

README.rst

httptester
==========

HTTP Testing endpoint which provides httpbin, nginx, SSL and SNI
capabilities, for providing a local HTTP endpoint for testing

Building
--------

Docker
~~~~~~

Both ways of building docker utilize the ``nginx:alpine`` image, but can
be customized for ``Fedora``, ``Red Hat``, ``CentOS``, ``Ubuntu``,
``Debian`` and other variants of ``Alpine``

When utilizing ``packer`` or configuring with ``ansible-playbook``
the services will not automtically start on launch, and will have to be
manually started using::

    $ /services.sh

Such as when starting a docker container::

    docker run -ti --rm -p 80:80 -p 443:443 --name httptester ansible/httptester /services.sh

docker build
^^^^^^^^^^^^

::

    docker build -t ansible/httptester .

packer
^^^^^^

The packer build will use ``ansible-playbook`` to perform the
configuration, and will tag the image as ``ansible/httptester``

::

    packer build packer.json

Ansible
~~~~~~~

::

    ansible-playbook -i hosts -v httptester.yml