(this is a fork of http://github.com/autopilotpattern/hello-world.git, intended to demonstrate SnowGlobe for setup/teardown of containers).
The Jenkinsfile assumes that you have docker-plugin and snowglobe-plugin. It also assumes that there is a docker cloud defined called 'docker'.
This will build the containers defined in this project, and associate a SnowGlobe configuration. This can then be launched by looking at the build, then following the SnowGlobe link.
This configuration (which is in the snowglobe subdirectory) is akin to the docker-compose layout controlling how the particular containers are wired together.
git clone [email protected]:autopilotpattern/hello-world.git
cd hello-world
docker-compose up -d
open http://localhost
The application is divided into 4 parts:
- Frontend - nginx server rendering static assets
- Consul - service catalog used to keep track of registered services
- Hello - Node.js service responding with the word "Hello"
- Hello - Node.js service responding with the word "World"