A Jenkins deployment with docker-compose-enabled nodes and some sample projects
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
master
slave
.gitignore
README.md
docker-compose.yml
export-environment-variables.sh

README.md

docker-ecosystem-jenkins

A Jenkins deployment with docker-compose-enabled nodes and some sample projects

Deployment

Setup

Environment variables

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

For convenience, 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:

bar

Will result in the following environment variable:

FOO=bar

Docker

This project is deployed with Docker. The easiest way to setup a Docker environment is by installing the Docker Toolbox.

Running

source ./export-environment-variables.sh && docker-compose up

Jenkins Dashboard

  1. Go to http://localhost:8080 in your browser.