[enhancement] glrunner: send the runner setup and Podman pulls through the proxy

Abierto
#974 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, linux, macos

Línea de trabajo

Start by tracing how --glrunner-http-proxy, --glrunner-no-proxy, and the Env field from #966 reach runner setup, then inspect the runner installation snippets and service configuration for Linux, macOS, and Windows. Check the related proposals in #953 and #966; define completion by verifying the stated acceptance case: the runner registers, comes online, and successfully pulls an image through the proxy.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Problem

#966 (for #953) passes --glrunner-http-proxy and --glrunner-no-proxy to the runner's job environment only. On a host that can only reach the internet through that proxy, setup fails before any job runs:

  1. The runner binary download (curl in snippet-linux.sh and snippet-darwin.sh, Invoke-WebRequest in snippet-windows.ps1).
  2. gitlab-runner register, which calls the GitLab API.
  3. The gitlab-runner service, which polls GitLab for jobs.
  4. Image pulls by Podman through podman.sock, for example fedora:latest. Podman runs as its own service and does not see the [[runners]] environment.
Proposal
  • Export the proxy variables before the download and register steps, or pass curl --proxy / Invoke-WebRequest -Proxy.
  • On Linux, add a systemd drop-in with Environment= for gitlab-runner.service and podman.service, or set [engine] env in containers.conf.
  • Work out the equivalents for the macOS LaunchDaemon and the Windows service.
  • Add a repeatable --glrunner-env KEY=VALUE flag, item 1 of the proposal in #953. The Env field from #966 already carries the values, and it covers CA bundles such as SSL_CERT_FILE and REQUESTS_CA_BUNDLE.
Acceptance
  • On a host whose only egress is the proxy, mapt aws fedora create with --glrunner-http-proxy produces a registered, online runner, and a job that pulls an image succeeds.
Lenguaje dominante
Go
Estrellas
26
Forks
41
Merge medio
3 d 14 h
PR fusionados (30 d)
27

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de redhat-developer/mapt

Todos los issues de redhat-developer/mapt

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.