A Jenkins deployment with docker-compose-enabled nodes and some sample projects
The following environment variables are required for this project:
- GIT_CREDENTIALS_USERNAME: Your GitHub username
- GIT_CREDENTIALS_PASSWORD: Your GitHub password (or personal token)
- JENKINS_ADMINISTRATOR_USERNAME: The Jenkins administrator username
- JENKINS_ADMINISTRATOR_PASSWORD: The Jenkins administrator password
export-environment-variables.sh will create and export
environment variables using files in the
environment folder. This folder is
excluded from the repository using
.gitignore, so you can add sensitive
environment variables here.
For example, a file named
FOO with file contents:
Will result in the following environment variable:
This project is deployed with Docker. The easiest way to setup a Docker environment is by installing the Docker Toolbox.
source ./export-environment-variables.sh && docker-compose up
- Go to
http://localhost:8080in your browser.