EEA & Eionet documentation hub

Browse documentation for IT-systems used by the European Environment Agency and the Eionet network.

Docker orchestration for EEA Jenkins Workers (Docker-in-Docker)

Docker orchestration for EEA Jenkins workers able to run Docker related jobs

Changes

Installation

  1. Install Docker.

  2. Install Docker Compose.

  3. Install Rancher Compose

Usage

$ git clone https://github.com/eea/eea.docker.jenkins.dind.git
$ cd eea.docker.jenkins.dind

Add master, user and password to connect jenkins slaves to jenkins master

$ cp .secret.example .secret
$ vi .secret

Deploy in production

$ rancher-compose -e .secret up -d

Update SSH keys on github

If you have Jenkins jobs that commit on github, get the new generated SSH keys from Jenkins Slaves Rancher console and add them to github (Jenkins user)

Upgrade

$ rancher-compose -e .secret pull
$ rancher-compose -e .secret up -d --upgrade

…and confirm that the upgrade went well:

$ rancher-compose -e .secret up -d --confirm-upgrade

…or roll-back:

$ rancher-compose -e .secret up -d --roll-back

The Initial Owner of the Original Code is European Environment Agency (EEA). All Rights Reserved.

The Original Code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Funding

European Environment Agency (EU)