/webapp

Ansible automation app deployment

Primary LanguagePython

Sample web app

The playbook included in this project will build, push to a remote repository and deploy a tomcat container serving a sample app. The application is served locally at port 8080. Within the playbook execution there is a unit test checking the container is running, if there is no application serving at the given address, it proceeds with the deploy, otherwise it will stop and exit.

Requirements

  • Docker.
  • Python3.
  • Pytest, should be available at ~/.local/bin/pytest.
  • Port 8080 available.

Steps

NOTE

  • Playbook must be run as root (it makes use of the Docker socket)