{"id":19930634,"url":"https://github.com/zardazare/local_cicd","last_synced_at":"2026-04-14T10:31:31.093Z","repository":{"id":262520998,"uuid":"871750244","full_name":"zardazare/local_cicd","owner":"zardazare","description":"This repository provides a Docker-based setup for running Jenkins and GitLab locally, enabling a self-contained CI/CD environment for development and testing purposes.","archived":false,"fork":false,"pushed_at":"2024-11-12T21:06:25.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-01-03T22:55:23.816Z","etag":null,"topics":["ci-cd","docker","gitlab","jenkins","yaml"],"latest_commit_sha":null,"homepage":"","language":null,"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/zardazare.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":"2024-10-12T20:37:39.000Z","updated_at":"2024-11-12T21:23:55.000Z","dependencies_parsed_at":"2024-11-12T23:01:19.134Z","dependency_job_id":null,"html_url":"https://github.com/zardazare/local_cicd","commit_stats":null,"previous_names":["zardazare/local_cicd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zardazare/local_cicd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardazare%2Flocal_cicd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardazare%2Flocal_cicd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardazare%2Flocal_cicd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardazare%2Flocal_cicd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zardazare","download_url":"https://codeload.github.com/zardazare/local_cicd/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardazare%2Flocal_cicd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31793212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ci-cd","docker","gitlab","jenkins","yaml"],"created_at":"2024-11-12T23:04:40.735Z","updated_at":"2026-04-14T10:31:31.071Z","avatar_url":"https://github.com/zardazare.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Local CI/CD Environment with Jenkins and GitLab\n\nThis setup provides a local CI/CD environment using Docker with Jenkins and GitLab. It includes a docker_compose.yml configuration for launching both services in separate containers on a custom Docker network with bridge driver.\n\n### Prerequisites\n\n- Docker and Docker Compose installed on your machine.\n- Local directories for Jenkins and GitLab data storage (see instructions below).\n\n### Setup\n\n1. Clone this repository and navigate to the directory containing docker_compose.yml.\n\n2. Create the necessary directories for Jenkins and GitLab data persistence on your machine:\n\n    ```bash\n    # Jenkins\n    mkdir -p /path/to/jenkins_home\n\n    # GitLab\n    mkdir -p /path/to/gitlab/config\n    mkdir -p /path/to/gitlab/logs\n    mkdir -p /path/to/gitlab/data\n    ```\n\n3. Update docker_compose.yml: Replace the TODO placeholders with the paths to the directories you just created.\n\n    ```yaml\n    volumes:\n    - \"/path/to/jenkins_home:/var/jenkins_home\"\n    - \"/path/to/gitlab/config:/etc/gitlab\"\n    - \"/path/to/gitlab/logs:/var/log/gitlab\"\n    - \"/path/to/gitlab/data:/var/opt/gitlab\"\n    ```\n\n4. Modify your hosts file to map the custom hostnames to localhost:\n\n    - Edit your /etc/hosts file (or C:\\Windows\\System32\\drivers\\etc\\hosts on Windows).\n\n    - Add the following lines:\n\n        ```plaintext\n        127.0.0.1 jenkins.localhost\n        127.0.0.1 gitlab.localhost\n        ```\n5. Launch the containers:\n\n    Run the following command to start Jenkins and GitLab:\n\n    ```bash\n    docker-compose -f docker_compose.yml up -d --wait\n    ```\n    - The --wait flag ensures services are fully initialized before they're marked as \"up.\"\n\n### Accessing the Services\n\n- Jenkins: Visit http://jenkins.localhost:36036\n- GitLab: Visit http://gitlab.localhost:36037\n\n### Configuration Details\n\n- Jenkins:\n\n    - Ports: 36036 (mapped to Jenkins's internal port 8080)\n    - Data storage: /var/jenkins_home mounted from the host directory.\n\n- GitLab:\n\n    - Ports: 36037 (mapped to GitLab's internal port 80)\n    - Config, logs, and data are mounted from the host to /etc/gitlab, /var/log/gitlab, and /var/opt/gitlab, respectively.\n    - Uncomment and configure the 443 port line if you want to enable HTTPS support.\n\n### Stopping the Services\n\nTo stop the services, use:\n\n```bash\ndocker-compose -f docker_compose.yml down\n```\n\nThis command will stop and remove the containers but preserve the volumes, allowing data persistence between sessions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzardazare%2Flocal_cicd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzardazare%2Flocal_cicd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzardazare%2Flocal_cicd/lists"}