@devcontainer/cli publish templates to GitLab container registry
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- docker, gitlab, typescript
調査の方向性
devcontainer templates publish コマンドから始め、issue に示されている Docker-login と ORAS-login のワークフローを比較します。トレースログを有効にして GitLab コンテナーレジストリに対する 401 を再現します。ワークフローが異なる理由を特定し、失敗経路を文書化または修正できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Related to this issue.
I don't see any update, and that issue was closed, so I created a new one.
TL;DR
It seems that we can publish devcontainer template to GitLab container registry now.
What happened
I tried to publish devcontainer template to self hosted GitLab container registry (v17.3.7-ee), by following the example.
It failed with 401(Could not fetch published tags) as expected, but it worked locally on my machine with the same user and access token.
So I was thinking maybe GitLab container registry start to support OADS now, tried another .gitlab-ci.yml and it worked.
But I didn't see any updates from GitLab saying they start to support OADS in this issue.
Anyone know why the original .gitlab-ci.yml failed, but the new one worked?
I was thinking building a @devcontainer/cli image with more detailed logs, and use it in the original .gitlab-ci.yml to help with the root cause analysis.
My .gitlab-ci.yml
Here's my .gitlab-ci.yml:
image: alpine:3.20
before_script:
- apk add --update nodejs npm curl
- npm install -g @devcontainers/cli
- VERSION="1.2.0"
- curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz"
- mkdir -p oras-install/
- tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
- mv oras-install/oras /usr/local/bin/
- rm -rf oras_${VERSION}_*.tar.gz oras-install/
build:
stage: build
script:
- echo "$PERSONAL_ACCESS_TOKEN" | oras login registry.gitlab.com -u "$PERSONAL_USER" --password-stdin
- devcontainer templates publish --log-level trace -r registry.gitlab.com -n group/project ./src
Here's my original and failed .gitlab-ci.yml:
image: docker:latest
variables:
DOCKER_TLS_CERTDIR: "/certs"
services:
- docker:dind
before_script:
- apk add --update nodejs npm python3 make g++ ca-certificates
- npm install -g @devcontainers/cli
build:
stage: build
script:
- echo "$PERSONAL_ACCESS_TOKEN" | docker login -u "$PERSONAL_USER" registry.gitlab.com --password-stdin
- devcontainer templates publish --log-level trace -r registry.gitlab.com -n group/project ./src
- 主要言語
- TypeScript
- スター
- 3k
- フォーク
- 461
- 平均マージ
- 18分
- マージ済み PR(30日)
- 5
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
devcontainers/cli のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
devcontainers/cli#1203 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
devcontainers/cli#1178 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
devcontainers/cli#1308 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
devcontainers/cli#1307 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
devcontainers/cli#1305 ·
devcontainers/cli の issue をすべて見る
似ている issue
-
blocklist removal
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MetaMask/eth-phishing-detect#296544 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
pastelsky/bundlephobia#1122 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100