Jenkins Build Using Docker Compose From Git
The docker-compose Jenkins plugin adds a build step that makes easy to make builds from a docker-compose file stored in a Git repository.
After creating the desired folder structure, create a new Freestyle Project.
You may choose the node where the images are going to be built and the containers will run. It's needed also to point to the Git repository.
Then the Docker Compose build step (the one created by the plugin) can be chosen.
If the file is named docker-compose.yml, it's only needed to choose "Start all services".
When the build job is executed, the docker-compose.yml is pulled from Git, the docker images are created and the containers are started.
Comments
Post a Comment