Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gitlab-runner gitlab-runner
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,506
    • Issues 2,506
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • gitlab-runnergitlab-runner
  • Issues
  • #27173
Closed
Open
Issue created Oct 27, 2020 by Steve Azzopardi@steveazzMaintainer

Set service entrypoint and command through config

Problem

Inside of the config.toml we allow the user to define services for the Docker executor and Kubernets executor. If we look at all the allowed configuration for the services inside of the .gitlab-ci.yml we are missing the entrypoint and command fields.

Proposal

  • Extend the service configuration to allow to set entrypoint and command for both the Docker and Kubernetes executor.
  • Update documentation to reflect these changes.

Use cases

Be able to set the DockerHub mirror for the dind service

[[runners]]
  [runners.docker]
    [[runners.docker.services]]
        name = "docker:19.03.13-dind"
        entrypoint = ["dockerd-entrypoint.sh"]
        command = ["--registry-mirror=https://docker-mirror.mycompany.com:5000"]
Edited Oct 30, 2020 by Steve Azzopardi
Assignee
Assign to
Time tracking