{"id":20040435,"url":"https://github.com/cvitter/jenkins-demo-environment","last_synced_at":"2026-05-04T18:34:26.262Z","repository":{"id":150376519,"uuid":"97958343","full_name":"cvitter/jenkins-demo-environment","owner":"cvitter","description":"Jenkins (https://jenkins.io/) demo environment built with Docker.","archived":false,"fork":false,"pushed_at":"2017-08-29T18:59:55.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T19:15:53.016Z","etag":null,"topics":["docker","docker-compose","jenkins"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cvitter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-21T14:47:22.000Z","updated_at":"2017-07-21T15:32:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5cbbc3b-e4b1-4b0b-ba1e-f3a39a5e85cf","html_url":"https://github.com/cvitter/jenkins-demo-environment","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvitter%2Fjenkins-demo-environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvitter%2Fjenkins-demo-environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvitter%2Fjenkins-demo-environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvitter%2Fjenkins-demo-environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvitter","download_url":"https://codeload.github.com/cvitter/jenkins-demo-environment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241470359,"owners_count":19968041,"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":["docker","docker-compose","jenkins"],"created_at":"2024-11-13T10:42:14.386Z","updated_at":"2026-05-04T18:34:26.208Z","avatar_url":"https://github.com/cvitter.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jenkins Demonstration Environment\n\nThis project allows you to quickly build a Jenkins (http://jenkins.io) environment that runs within a Docker container with persistent storage mapped to a local drive. This project:\n\n* Will install the latest Docker-ized version of Jenkins (found at https://hub.docker.com/r/jenkins/jenkins/); \n* Install Maven (https://maven.apache.org/) in the container;\n* And install Docker (https://www.docker.com/) in the container.\n\nIn the next section we will cover how to configure the Jenkins Docker container (after you clone or download this project locally).\n\n# Configuring\n\nBefore running Jenkins for the first time you will want to update the ``docker-compose.yml`` file for your specific requirements as outlined below:\n\n**Time Zone**:\n\nIf you would like to set Jenkins time zone you can edit the following line in the ``environment`` section of the file:\n\n`` JAVA_OPTS: \"-Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York\" ``\n\n**Ports**:\n\nIn the default configuration Jenkins will be available on port ``9080`` (i.e. at ``http://localhost:9080``). You can edit the port in the following line in the ``ports`` section of the file:\n\n`` - \"9080:8080\" #host:container ``\n\n**Persistent Storage**: \n\nTo persist your Jenkins home when the container restarts you will need to map a local volume on your machine to the Jenkins home directory on the docker container. In my environment I map Jenkins home to the ``/Users/craigvitter/Jenkins`` directory on my MacBook. You should edit that portion of the following line in the ``volumes`` section:\n\n`` - /Users/craigvitter/Jenkins:/var/jenkins_home     # Set the Jenkins home on the host machine ``\n\n**Docker**:\n\nThe following line in the ``volumes`` section maps the docker container's sock to the host's to allow your Jenkins instance to access the host's Docker installation. If your host machine has docker installed in another location edit the first path to match the local location.\n\n`` - /var/run/docker.sock:/var/run/docker.sock        # Allow the container to run Docker on Docker ``\n\n# Running\n\nThe first time you run Jenkins using this setup you will need to build the image locally on your host. This project includes two ways to accomplish this goal. The easiest way is to simply type the following command within the project root:\n\n``make build``\n\nYou can also use the following Docker command:\n\n``docker-compose build``\n\nOnce the image has completed building you can run it using the following command:\n\n``make start``\n\nor:\n\n``docker-compose up -d``\n\nWhen the container is up and running your Jenkins instance will be available at: http://localhost:9080\n\nIf you need to stop your container you can use:\n\n``make stop``\n\nor:\n\n``docker-compose down`` \n\n# Updating\n\nWhen a new version of Jenkins is released the easiest way to update your Docker image is to use the following ``make`` commands:\n\n```\nmake stop\nmake build\nmake start\n```\n\nto retrieve and build the lastest version.\n\nAlternatively you could use the following Docker commands:\n\n```\ndocker-compose down\ndocker pull jenkins/jenkins\ndocker-compose build\ndocker-compose up -d\n```\n\n# License\n\nThe content in this repository is Open Source material released under the Apache 2.0 License. Please see the [LICENSE](LICENSE) file for full license details.\n\n# Disclaimer\n\nThe code in this repository is not sponsored or supported by Cloudbees, Inc.\n\n# Authors and Contributors \n\n* Author: [Craig Vitter](https://github.com/cvitter)\n \n# Questions, Feedback, Pull Requests Etc.\n\nIf you have any questions, feedback, suggestions, etc. please submit them via issues or, even better, submit a Pull Request!\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvitter%2Fjenkins-demo-environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvitter%2Fjenkins-demo-environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvitter%2Fjenkins-demo-environment/lists"}