{"id":22018497,"url":"https://github.com/flavienbwk/gitlab-runner-docker-compose","last_synced_at":"2025-08-07T01:04:57.257Z","repository":{"id":124243336,"uuid":"216178772","full_name":"flavienbwk/gitlab-runner-docker-compose","owner":"flavienbwk","description":"Gitlab runners easily explained and dockerized with compose.","archived":false,"fork":false,"pushed_at":"2019-10-22T10:09:22.000Z","size":194,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T02:03:12.221Z","etag":null,"topics":["ci","docker","docker-compose","gitlab","gitlab-runner"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/flavienbwk.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,"zenodo":null}},"created_at":"2019-10-19T09:09:43.000Z","updated_at":"2025-05-19T07:31:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2fb4990-0d76-47bc-b66c-1960bb6981a0","html_url":"https://github.com/flavienbwk/gitlab-runner-docker-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flavienbwk/gitlab-runner-docker-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fgitlab-runner-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fgitlab-runner-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fgitlab-runner-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fgitlab-runner-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavienbwk","download_url":"https://codeload.github.com/flavienbwk/gitlab-runner-docker-compose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fgitlab-runner-docker-compose/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269181069,"owners_count":24373857,"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","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","docker","docker-compose","gitlab","gitlab-runner"],"created_at":"2024-11-30T05:12:20.786Z","updated_at":"2025-08-07T01:04:57.224Z","avatar_url":"https://github.com/flavienbwk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitlab Runner with docker-compose\n\nGitlab runners easily explained and dockerized with compose.\n\n**Take the time to read this documentation to understand how runners work.**\n\n## Principle\n\nA _runner_ is an external machine or VM on which Gitlab pipelines will be executed once the machine has been registered.\n\nYour runner machine is a standalone machine that will automatically be ping by Gitlab, clone your project and execute a serie of test as described by your `gitlab-ci.yml` file or through the _Auto DevOps_ feature of Gitlab.\n\nSo we have two things to do :\n1. Create the runner server\n2. Register the runner to your Gitlab instance\n\n## Installation\n\nWe will need two information first :\n- Your Gitlab instance URL (e.g: https://gitlab.com/)\n- A Gitlab Runner token\n\n### Getting your Gitlab Runner token\n\nYou have `system-wide` or `group-wide` Runner tokens.\n\nIf you want your Runner to run pipelines for any project, go to the `Admin Area \u003e Overview \u003e Runners` (/admin/runners).\n\n![System-wide token location](./images/system-wide-token.png)\n\nIf you want your Runner to run pipelines for only a specific project, go to `Your Project \u003e Settings \u003e CI / CD` and expand the `Runners` tab.\n\n![Project-wide token location](./images/project-wide-token.png)\n\nThere, get your **token** and **URL**.\n\n### Specify tags (optional)\n\nYou can tag `jobs` and `runners` so only runners with the specific tags of the job will run your pipeline\n\nTo tag a specific job, go to your `gitlab-ci.yml` file and edit the `tags` attribute of your job.\n\nFor example like that :\n```yml\nwindows job:\n  stage:\n    - build\n  tags:\n    - windows\n    - greetings\n    - example_scripts\n  script:\n    - echo Hello, %USERNAME%!\n\nosx job:\n  stage:\n    - build\n  tags:\n    - osx\n  script:\n    - echo \"Hello, $USER!\"\n```\n\nIn `entrypoint.sh`, edit the `--tag-list` flag to add Runner tags.\n\n### Edit entrypoint.sh and run !\n\nOpen `entrypoint.sh` and edit the options `--url`, `--description` (optional) and `--registration-token`\n\nThen, run docker-compose :\n```\ndocker-compose up -d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fgitlab-runner-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavienbwk%2Fgitlab-runner-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fgitlab-runner-docker-compose/lists"}