{"id":13516141,"url":"https://github.com/kangasta/jenkins-examples","last_synced_at":"2025-03-31T05:31:19.623Z","repository":{"id":40294186,"uuid":"321736333","full_name":"kangasta/jenkins-examples","owner":"kangasta","description":"Examples for settings up and using Jenkins in and with containers.","archived":true,"fork":false,"pushed_at":"2024-10-18T14:02:53.000Z","size":63,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-01T20:36:17.214Z","etag":null,"topics":["docker","docker-compose","example","jenkins","robotframework","sonarqube","wsl","wsl-ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/kangasta.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}},"created_at":"2020-12-15T17:12:57.000Z","updated_at":"2024-10-18T14:05:31.000Z","dependencies_parsed_at":"2023-10-12T22:33:27.739Z","dependency_job_id":"bf60637a-40fe-4cc4-9308-c41345433ba6","html_url":"https://github.com/kangasta/jenkins-examples","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/kangasta%2Fjenkins-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kangasta%2Fjenkins-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kangasta%2Fjenkins-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kangasta%2Fjenkins-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kangasta","download_url":"https://codeload.github.com/kangasta/jenkins-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423527,"owners_count":20774795,"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","example","jenkins","robotframework","sonarqube","wsl","wsl-ubuntu"],"created_at":"2024-08-01T05:01:19.487Z","updated_at":"2025-03-31T05:31:18.775Z","avatar_url":"https://github.com/kangasta.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"\u003e [!WARNING]\n\u003e __Deprecated:__ updated version of this guide is available on [CI/CD Tutorials website](https://cicd-tutorials.net/).\n\n# Jenkins examples\n\nThis repository contains examples for settings up and using Jenkins in and with containers.\n\nNote that by default each of the example docker compose configurations will create their own volumes for the data. This might not be what you want. In order to use the same volumes for every docker compose configuration, run docker compose with `-p` (or `--project-name`) option. This can also be done by setting `COMPOSE_PROJECT_NAME` environment variable:\n\n```bash\nexport COMPOSE_PROJECT_NAME=jenkins\n```\n\n## Installing Docker\n\nSee [Get Docker](https://docs.docker.com/get-docker/) for installation instructions.\n\nIf you use Docker a lot on Mac or Windows system, the recommended Docker Desktop is likely a good option for you. Note that, since January 2022, it has required paid subscription if used for commercial development.\n\nAlternatively, Windows users can [install Docker on top of WSL2](./docker-on-wsl/). For Mac users there are alternatives, such as [Colima](https://github.com/abiosoft/colima), available.\n\n## Jenkins image with Docker-in-Docker support\n\nIn order to run Jenkins container with Docker-in-Docker support, `cd` into [dind-jenkins](./dind-jenkins/) directory and run `docker compose up`. See Dockerfile and docker compose.yml for the configuration details.\n\n```bash\ncd dind-jenkins/\n\n# If you want to see logs in the current terminal\ndocker compose up --build\n\n# Or if you want to run the container in the background\ndocker compose up --build --detach\n```\n\nThe initial admin password can be easily printed with `docker compose exec`:\n\n```bash\ndocker compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword\n```\n\nIn order to get started the suggested plugins are often good a starting point. If you are planning to create pipeline projects with stages running in on-demand Docker containers, you will also need [Docker Pipeline](https://plugins.jenkins.io/docker-workflow/) plugin. This can be installed through the [Manage Jenkins \u003e Manage plugins](http://localhost:8080/pluginManager/available) menu.\n\n## Other examples\n\nFor other examples, detailed descriptions are available in the directory specific README files:\n\n- [Build status pipelines and Job DSL](./build-status-pipelines)\n- [Jenkins and SonarQube](./sonarqube-jenkins)\n- [Parallel Robot Framework pipeline](./parallel-robot-pipeline)\n- [Deploy application to Kubernetes with Ansible](./ansible-kubernetes/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkangasta%2Fjenkins-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkangasta%2Fjenkins-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkangasta%2Fjenkins-examples/lists"}