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

オープン
#974 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, linux, macos

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Go
スター
26
フォーク
41
平均マージ
3日 14時間
マージ済み PR(30日)
27

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

redhat-developer/mapt のほかの issue

redhat-developer/mapt の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。