{"id":16953724,"url":"https://github.com/schottsfired/cjt-demo-environment","last_synced_at":"2025-04-14T04:52:18.231Z","repository":{"id":93524942,"uuid":"95121931","full_name":"schottsfired/cjt-demo-environment","owner":"schottsfired","description":"CloudBees Jenkins Team Demo based on Docker Compose","archived":false,"fork":false,"pushed_at":"2019-04-15T18:06:50.000Z","size":37,"stargazers_count":3,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T18:52:35.221Z","etag":null,"topics":["cloudbees","docker-compose","jenkins"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schottsfired.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-22T14:05:08.000Z","updated_at":"2025-01-15T17:10:16.000Z","dependencies_parsed_at":"2023-04-19T11:33:07.579Z","dependency_job_id":null,"html_url":"https://github.com/schottsfired/cjt-demo-environment","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/schottsfired%2Fcjt-demo-environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schottsfired%2Fcjt-demo-environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schottsfired%2Fcjt-demo-environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schottsfired%2Fcjt-demo-environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schottsfired","download_url":"https://codeload.github.com/schottsfired/cjt-demo-environment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824693,"owners_count":21167343,"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":["cloudbees","docker-compose","jenkins"],"created_at":"2024-10-13T22:07:47.734Z","updated_at":"2025-04-14T04:52:18.226Z","avatar_url":"https://github.com/schottsfired.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CloudBees Jenkins Team Demo\n\n## Features\n* [CloudBees Jenkins Team](https://www.cloudbees.com/products/cloudbees-jenkins-team) Master and Agent(s) run as Docker containers\n* Agents can be spawned and destroyed dynamically\n* All executors support [Maven](https://maven.apache.org/) and [Docker Pipeline](https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin)\n\n## Initial Setup\nThis demo requires that you have [Docker](https://www.docker.com/get-docker) and [Maven](https://maven.apache.org/) installed.\n\nOpen a terminal at this repo location and run `cp .sample.env .env` to create local file called `.env` based on the sample. Then modify `.env` to make it specific to your environment. You should only need to touch ``USER_M2`` and the DockerHub API Key (from http://cloud.docker.com), all others may remain as-is.\n\nFinally, run ``make`` to let Docker do its thing.\n\nNOTE: If any configuration files are modified, like ``jenkins.yaml``, ``plugins.txt``, or ``/init.groovy.d/*.groovy``, then run ``make`` again to build new images.\n\n## Starting and Stopping\nTo start CJT, run ``docker-compose up``. Logs will be streamed to the console, and CJT can be stopped with `^c`. Alternatively you can run CJT detached using ``docker-compose up -d``, access logs with ``docker logs cjt``, and stop using ``docker-compose down``.\n\nYou may then access CJT at http://localhost:9090 and complete the Getting Started wizard.\n\nTo start Agent(s), run ``make agent``. To stop all Agents, run ``make stop``. To build a new agent image after making changes, run ``make agent-build``.\n\nTo clean up images, run ``make clean``.\n\nNOTE: [Swarm](https://wiki.jenkins.io/display/JENKINS/Swarm+Plugin) Agents require a user with appropriate permissions to connect to CJT. The default is admin/admin and you can change it in your ``.env`` if necessary.\n\n## CI/CD Demos\nThanks to the [Configuration as Code Plugin](https://github.com/jenkinsci/configuration-as-code-plugin), demos are built in! \n\nA [Sample Rest Server](https://github.com/cloudy-demos/sample-rest-server) project is configured out of the box, which uses [Pipeline Shared Libraries](https://github.com/cloudy-demos/pipeline-libraries) as a form of templating.\n\nSample Rest Server requires a Sonar server to function properly. Run ``make sonar`` to launch one then access it at http://localhost:9000 to see that it's running and view test results.\n\nAn [ASP.Net Core App](https://github.com/cloudy-demos/aspnet-app) project is also configured out of the box. Note that this pipeline has an \"approval\" step that requires a human to approve.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschottsfired%2Fcjt-demo-environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschottsfired%2Fcjt-demo-environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschottsfired%2Fcjt-demo-environment/lists"}