{"id":14984707,"url":"https://github.com/shimmi/docker-jenkins","last_synced_at":"2025-04-10T21:21:03.960Z","repository":{"id":25039698,"uuid":"77524670","full_name":"Shimmi/docker-jenkins","owner":"Shimmi","description":"Jenkins with Blue Ocean and support for builiding jobs in Docker","archived":false,"fork":false,"pushed_at":"2022-05-29T05:51:58.000Z","size":844,"stargazers_count":17,"open_issues_count":1,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T18:49:38.994Z","etag":null,"topics":["blue-ocean","ci","docker","docker-image","jenkins","jenkins-ci"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shimmi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-28T10:27:56.000Z","updated_at":"2021-12-12T16:04:04.000Z","dependencies_parsed_at":"2022-09-20T07:53:19.959Z","dependency_job_id":null,"html_url":"https://github.com/Shimmi/docker-jenkins","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shimmi%2Fdocker-jenkins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shimmi%2Fdocker-jenkins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shimmi%2Fdocker-jenkins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shimmi%2Fdocker-jenkins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shimmi","download_url":"https://codeload.github.com/Shimmi/docker-jenkins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248298944,"owners_count":21080437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blue-ocean","ci","docker","docker-image","jenkins","jenkins-ci"],"created_at":"2024-09-24T14:09:33.071Z","updated_at":"2025-04-10T21:21:03.943Z","avatar_url":"https://github.com/Shimmi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jenkins with Blue Ocean and support for building jobs in Docker\n_For a new Jenkins experience._\n\n## Supported tags and respective `Dockerfile` links\n* `lts` [(lts/Dockerfile)](https://github.com/Shimmi/docker-jenkins/blob/master/lts/Dockerfile) - Long term support\n* `latest` [(latest/Dockerfile)](https://github.com/Shimmi/docker-jenkins/blob/master/latest/Dockerfile) - Weekly updates\n\n[![dockeri.co](http://dockeri.co/image/shimmi/jenkins)](https://registry.hub.docker.com/shimmi/jenkins/)\n\n[![](https://images.microbadger.com/badges/image/shimmi/jenkins.svg)](https://microbadger.com/images/shimmi/jenkins \"Get your own image badge on microbadger.com\")\n[![](https://images.microbadger.com/badges/version/shimmi/jenkins.svg)](https://microbadger.com/images/shimmi/jenkins \"Get your own version badge on microbadger.com\")\n[![GitHub issues](https://img.shields.io/github/issues/shimmi/docker-jenkins.svg \"GitHub issues\")](https://github.com/Shimmi/docker-jenkins/issues)\n[![GitHub stars](https://img.shields.io/github/stars/shimmi/docker-jenkins.svg \"GitHub stars\")](https://github.com/Shimmi/docker-jenkins/stargazers)\n\nBased on the [Official Jenkins Docker image](https://store.docker.com/community/images/jenkins/jenkins \"official image\"). This image adds support for running Docker CLI inside the Jenkins container and building the jobs using declarative pipelines with Docker. Bundled with [Blue Ocean](https://jenkins.io/projects/blueocean/).\n\n## Note on the image\nThe image is automatically built on any change pushed to the [Shimmi/docker-jenkins](https://github.com/Shimmi/docker-jenkins) repo and/or when [original Jenkins image](https://store.docker.com/community/images/jenkinsci/jenkins) changes.\n\n## What is a Pipeline?\nPipelines are a series of steps that allow you to orchestrate the work required to build, test and deploy applications. Pipelines are defined in a file called `Jenkinsfile` that is stored in the root of your project’s source repository.\n\n## What is a Declarative pipeline?\nAnnounced at Jenkins World on 14th of September 2016 along with the Blue Ocean, the Declarative pipeline is a new way of how to **configure** the Pipelines rather than **script** them.\n\nDocker support in Declarative Pipeline allows you to version your application code, Jenkins Pipeline configuration, and the environment where your pipeline will run, all in a single repository. It’s a crazy powerful combination.\n\nDeclarative Pipeline introduces the `postBuild` section that makes it easy to run things conditionally at the end of your Pipeline without the complexity of the try... catch of Pipeline script.\n\n### Example of Declarative pipeline\n```\npipeline {\n  agent { docker 'php' }\n  stages {\n    stage('build') {\n      steps {\n        sh 'php --version'    \n      }\n    }\n  }\n}\n```\n[See additional basic examples in another language](https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/getting%20started#quick-start).\n\n## What is a Blue Ocean?\nBlue Ocean is a new project that rethinks the user experience of Jenkins. Designed from the ground up for Jenkins Pipeline and compatible with Freestyle jobs, Blue Ocean reduces clutter and increases clarity for every member of your team.\n\n![Blue Ocean](https://raw.githubusercontent.com/Shimmi/docker-jenkins/master/docs/images/blue-ocean/pipeline-activity.png \"Blue Ocean\")\n\n# Usage\n_Please refer to the [official documentation](https://github.com/jenkinsci/docker/blob/master/README.md) description for additional configuration and usage of the Jenkins docker image._\n\n## Using `docker-compose`\n1. Clone the repo or just the `docker-compose.yml` file.\n2. Go to that folder and run `docker-compose up -d`.\n\n### Solving \"docker.sock is not a valid Windows path\" error\nIf you are getting this error (on Docker version 18 and above), please set environment variable `COMPOSE_CONVERT_WINDOWS_PATHS` to true.\n\nE.g. In Powershell, you can do: `$env:COMPOSE_CONVERT_WINDOWS_PATHS=1`.\n\nSee [docker/compose#4240](https://github.com/docker/compose/issues/4240) issue for more info.\n\n### Upgrading\n1. Prepare Jenkins to shutdown (Manage Jenkins \u003e Prepare for Shutdown).\n2. Go to your `docker-compose.yml` folder.\n4. Run `docker-compose up -d` again to recreate the container with new image and run it as a daemon.\n\n## Using `docker run`\nYou can also run the image without any cloning by using the `docker run` command.\n\n`docker run -d --name my_jenkins -v /your/home/jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 --group-add docker shimmi/jenkins`\n\nPlease alter the `/your/home/jenkins_home` path to your needs.\n\n### E.g. On windows:\n`docker run -d --name my_jenkins -v /C/Users/\u003cyour-profile\u003e/Documents/docker/jenkins/jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080  --group-add docker shimmi/jenkins`\n\n# Resources\n* [Pipeline model definition - Wiki](https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/getting%20started)\n* [Jenkins Handbook - Pipeline](https://jenkins.io/doc/book/pipeline/)\n* [Announcing the Blue Ocean beta, Declarative Pipeline and Pipeline Editor - Jenkins blog](https://jenkins.io/blog/2016/09/19/blueocean-beta-declarative-pipeline-pipeline-editor/)\n* [Jenkins - Blue Ocean](https://jenkins.io/projects/blueocean/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimmi%2Fdocker-jenkins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshimmi%2Fdocker-jenkins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimmi%2Fdocker-jenkins/lists"}