Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.34 KB

File metadata and controls

29 lines (19 loc) · 1.34 KB

Welcome to the docker wiki!

Codefresh build status

Any changes made and pushed up to this repository will automatically trigger a build on my docker hub and within a couple of minutes later the build would of completed.

Requirements

  • Jenkins
  • Blue Ocean plugin installed

Enviroment Setup

Jenkins Docker Permissions

Open up the terminal and add in the following command sudo usermod -aG docker jenkins

The above command gives jenkins the correct permissions to use Docker commands

Restart the Jenkins service once you've ran the command

Creating Pipeline

Pipeline Repository Setup Steps

  1. Create a Personal access token that gives blue ocean access to your repositories (token is only used once unless it is deleted/removed or your Jenkins was uninstalled).
  2. Select the Repo your want to test (Make sure that the repo you are testing doesn't have an existing Jenkinsfile in it).
  3. Click the Agent drop down and select docker.
  4. In the Image * field add in shaeenk/docker.
  5. Add in the step you need that will be running you test script