## Prepare the Ubuntu image 

These instructions have been developed in a freshly installed image of Ubuntu 16.04, with Docker Community Edition, and Jenkins for the automation. A similar process can be completed on other Linux releases, but any adaptation of these instructions is an exercise that is left up to the reader. 

## Install docker 

Perform the following steps to install docker: 

1. Log in to the Ubuntu image and open a terminal window. Ensure that the system is up to date by running, 

sudo apt-get update 

2. Install the tools and repository for Docker to be installed: 

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common sudo curl -fssl https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 

3. Install Docker by using the following commands: 

sudo apt-get update 

sudo apt-get install docker-ce 

4. Create a user for Jenkins to use, and configure access to run Docker by using the following commands: 

sudo adduser jenkins sudo usermod -aG docker jenkins sudo usermod -aG docker <primaryUser> where the <primaryUser>  is the user that you are currently using, sudo systemctl restart docker 

## Install the dependences for the Jenkins and the IBM MQ Container build 

Perform the following steps, while still logged in to Ubuntu: 

1. Install Git by using the following command: 

sudo apt-get install git-core 

2. The Jenkins agent requires a JRE to be installed to orchestrate the pipeline. Run the following command: 

sudo apt-get install default-jre 

3. GNU Make is used by the IBM MQ build process. This can be installed by running the following command: 

sudo apt install gcc 

4. Install and start ssh by running the following commands: 

sudo apt-get install openssh-server 

## Starting Jenkins 

Perform the following steps to start Jenkins: 

