This repository includes the files necessary for transitioning from docker
to docker compose
in our Jenkins tutorials and installation guides.
gitpod.io/#
to any GitHub, GitLab, or Bitbucket repository URL.Gitpod is a cloud-based development environment designed for teams. It supports various IDEs, including VScode, IntelliJ, and many more, enabling efficient and secure software development.
Use docker compose up
to run examples from this project. Currently, we have four working examples:
To run different examples with docker compose up -d
, append the example name to the command, like so:
maven
=> docker compose --profile maven up -d
python
=> docker compose --profile python up -d
node
=> docker compose --profile node up -d
multi
=> docker compose --profile multi up -d
If no tutorial-related argument is used (i.e., docker compose --profile default up -d
), the command runs the latest default example.
If no argument regarding profiles is used at all (i.e., docker compose up -d
), then you will have a Jenkins controller desperately waiting for a non existent agent to connect.
If you prefer to build images yourself, append -f build-docker-compose.yaml
after docker compose
. For example, to build the node
tutorial Jenkins instance, use: docker compose -f build-docker-compose.yaml --profile node up -d
.
docker ps
or docker compose ps
commands.docker compose --profile <tutorial-name> up
, a pop-up titled A service is available on port 8080
should appear. If it doesn't, you can view the running service in the PORTS
section on the right side of the terminal.docker compose --profile <tutorial-name> down
.Resource is still in use
warning, use the --remove-orphans
option which would give docker compose --profile <tutorial-name> down --remove-orphans
.-v
option which would give docker compose --profile <tutorial-name> down -v
.To improve the Gitpod experience with Jenkins, we've suppressed a reverse proxy setup warning in Jenkins that was causing issues in the Gitpod environment. We achieved this using Jenkins Configuration as Code (JCASC) and added the following property to the JCASC YAML file:
jenkins:
disabledAdministrativeMonitors:
- "hudson.diagnosis.ReverseProxySetupMonitor"
For more detailed information about this configuration and the context behind it, please refer to the corresponding issue.
If you encounter any issues while running the examples, please open an issue in this repository. We will be happy to help you resolve the issue. Please let us know the following details when you open an issue:
docker version
command.docker compose version
command.The tutorials have been tested with:
26.1.3
2.27.1