{"id":24448836,"url":"https://github.com/lorenz/docker-runner","last_synced_at":"2025-09-11T14:21:10.041Z","repository":{"id":84218668,"uuid":"165702873","full_name":"lorenz/docker-runner","owner":"lorenz","description":"Custom GitLab CI runner for securely building Container Images","archived":false,"fork":false,"pushed_at":"2022-05-16T21:31:23.000Z","size":5578,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-01T00:58:36.123Z","etag":null,"topics":["ci","devops","docker","docker-build","gitlab"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/lorenz.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-14T17:18:03.000Z","updated_at":"2025-01-18T02:57:33.000Z","dependencies_parsed_at":"2023-05-24T00:45:23.520Z","dependency_job_id":null,"html_url":"https://github.com/lorenz/docker-runner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lorenz/docker-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenz%2Fdocker-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenz%2Fdocker-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenz%2Fdocker-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenz%2Fdocker-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lorenz","download_url":"https://codeload.github.com/lorenz/docker-runner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorenz%2Fdocker-runner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274653855,"owners_count":25325401,"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-09-11T02:00:13.660Z","response_time":74,"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","devops","docker","docker-build","gitlab"],"created_at":"2025-01-21T00:34:54.855Z","updated_at":"2025-09-11T14:21:09.994Z","avatar_url":"https://github.com/lorenz.png","language":"Go","readme":"# Docker Runner\n\n_A GitLab CI runner which securely and quickly builds container images_\n\n## Installation guide\n\nYou can build the image using `docker build .`. Currently no prebuilt options are offered. If you\nwant Git LFS support, please also build the dind image in this repository. A Kubernetes spec is\nprovided as an example, please customize it for your own needs.\n\nAll configuration is done using environment variables. The following variables are available:\n\n| Variable              | Default                   | Description                                                                                                                                                             |\n| --------------------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `GITLAB_URL`          | _None_                    | The full URL to GitLab including protocol                                                                                                                               |\n| `REGISTRY`            | _None_                    | The registry to use, in Docker format (so just the hostname). If unset a GitLab registry is assumed and gitlab auth token and user is used for auth.                    |\n| `GITLAB_RUNNER_TOKEN` | _None_                    | The runner token for this runner. Note that this runner doesn't perform registration. Use a Kubernetes secret claim or a separate registering application to obtain it. |\n| `DOCKER_API_VERSION`  | Highest supported version | Use this to limit the protocol version the Docker client attempts to use. For 18.06 a value of 1.38 is recommended.                                                     |\n\n## User's guide\n\nUse the following snippet in your `.gitlab-ci.yml`:\n\n```yaml\nbuild:\n  stage: build\n  script: [\"\"]\n  variables: # All are optional\n    BUILD_DIR: some-dir # Build from a sub-directory and push under project-name/some-dir:tag\n    BUILD_NAME: another-name # Overrides the image name from BUILD_DIR to project-name/another-name:tag\n    BUILD_FROM_ROOT: \"false\" # Build from root but search for Dockerfile in BUILD_DIR\n    RELATIVE_FROM: some-other-dir # Make the image path of a previously built image from the same project available as RELATIVE_FROM build arg\n  tags:\n    - docker # Or whatever tag you use for the builder\n```\n\ndocker-runner will automatically grab the Dockerfile at the root of your project, make sure the base\nimage (`FROM`) is up-to-date and build it with full caching enabled and push it under the same name\nas the project on GitLab. No configuration necessary.\n\nFor a custom registry it is possible to specify the auth user and password via build variables. It\nis recommended to set this as a\n[pipeline environment variable](https://docs.gitlab.com/ee/ci/variables/#variables).\n\n| Variable            | Default | Description       |\n| ------------------- | ------- | ----------------- |\n| `REGISTRY_USER`     | _none_  | Registry user     |\n| `REGISTRY_PASSWORD` | _none_  | Registry password |\n\n### Limitations\n\n- No support for submodules\n- No support for GitLab cache (it has its own) and artifacts\n\n## Comparison with other approaches\n\nKaniko\n\n- \\+ Much faster builds due to caching and single fetch directly to Docker daemon\n- \\+ Better GitLab Integration\n- \\- Doesn't respect resource limits set by K8s since builds are run by a separate Docker daemon\n\nDocker on GitLab CI\n\n- \\+ Faster builds due to direct fetch to Docker daemon\n- \\+ Less configuration per project\n- \\+ Guarantees base images are up-to-date\n- \\+ Much safer, no known escapes from the build environment\n\nExternal providers (Docker Hub, GCR, ACR)\n\n- \\+ Generally faster\n- \\+ Less confirguration\n- \\+ Runs on your existing infrastructure\n- \\- Worse resource isolation\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florenz%2Fdocker-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florenz%2Fdocker-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florenz%2Fdocker-runner/lists"}