{"id":14984662,"url":"https://github.com/jbris/jenkins-docker-bats-stack","last_synced_at":"2026-01-03T06:35:15.407Z","repository":{"id":125855469,"uuid":"242262140","full_name":"JBris/jenkins-docker-bats-stack","owner":"JBris","description":"A Docker configuration for Jenkins. Includes Bats for testing. Traefik and Portainer are included for container management and routing.","archived":false,"fork":false,"pushed_at":"2020-02-29T03:14:51.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T07:09:43.141Z","etag":null,"topics":["bats","cd","ci","ci-cd","docker","docker-compose","docker-image","groovy","groovy-language","jenkins","jenkins-ci","jenkins-container","jenkins-pipeline","jenkinsfile","pipelines","portainer","taps","testing","testing-framework","traefik"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/JBris.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-22T01:44:37.000Z","updated_at":"2020-06-14T13:04:55.000Z","dependencies_parsed_at":"2023-03-09T09:45:38.158Z","dependency_job_id":null,"html_url":"https://github.com/JBris/jenkins-docker-bats-stack","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.2222222222222222,"last_synced_commit":"89405f8673db779b454b5c66714f5084d954f014"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBris%2Fjenkins-docker-bats-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBris%2Fjenkins-docker-bats-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBris%2Fjenkins-docker-bats-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBris%2Fjenkins-docker-bats-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JBris","download_url":"https://codeload.github.com/JBris/jenkins-docker-bats-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926198,"owners_count":20369945,"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":["bats","cd","ci","ci-cd","docker","docker-compose","docker-image","groovy","groovy-language","jenkins","jenkins-ci","jenkins-container","jenkins-pipeline","jenkinsfile","pipelines","portainer","taps","testing","testing-framework","traefik"],"created_at":"2024-09-24T14:09:28.883Z","updated_at":"2026-01-03T06:35:15.380Z","avatar_url":"https://github.com/JBris.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jenkins-docker-bats-stack\n\n## Table of Contents  \n* [Introduction](#introduction)\u003ca name=\"introduction\"/\u003e\n* [Jenkins](#jenkins)\u003ca name=\"jenkins\"/\u003e\n* [Docker](#docker)\u003ca name=\"docker\"/\u003e\n* [Bats](#bats)\u003ca name=\"bats\"/\u003e\n\n### Introduction\n\nThis repo combines Jenkins, Bats, and Docker together to provide a simple example of the CI/CD process. Execute `build.sh` to get started.\n\n### Jenkins\n\nExecute [get-plugins.sh](services/jenkins/scripts/get-plugins.sh) to retrieve a list of installed plugins within your Jenkins master instance. You can use `make get-plugins` to call the script from within the Jenkins container.\n\nExecute [sync-plugins.sh](services/jenkins/scripts/sync-plugins.sh) to install all the plugins listed within the [plugins.txt](services/jenkins/resources/plugins.txt) file. You can use `make sync-plugins` to call the script from within the Jenkins container.\n\nDuring your initial installation of Jenkins, execute `make init-admin-password` to retrieve the initial, autogenerated administrator password. Note that this password will be visible in the shell.\n\nA fairly simple [example Jenkins file](Jenkinsfile) has been included. This file will execute the battery of tests included in the [tests directory](tests). A test results report will be generated using the [TAPS plugin](https://plugins.jenkins.io/tap/).\n\n### Docker\n\nThe Jenkins container has access to the Docker socket to facilitate communication with the Docker daemon (note that there are security implications in doing this). Both `Docker` and `docker-compose` are installed during the Jenkins build process, allowing docker commands to be executed within your Jenkins pipelines.\n\n### Bats\n\nThe BATS framework has been included for use during unit and integration testing. See the [tests directory](tests) for some example tests that will be executed during the Jenkins pipeline. [tests.bats](tests/tests.bats) contains a battery of simple tests to determine if Docker is correctly installed within the Jenkins container. [jenkins_helper.bash](tests/jenkins_helper.bash) is a helper bash script that can contain any reusable variables or functions that you may wish to include in your tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbris%2Fjenkins-docker-bats-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbris%2Fjenkins-docker-bats-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbris%2Fjenkins-docker-bats-stack/lists"}