Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

initializeCommand not executed in envbuilder

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, go

調査の方向性

devcontainer.jsonを処理するenvbuilderのエントリポイントから始め、その後、Dockerfileのビルド前にinitializeCommandがどのように処理されるかを追跡します。示されている.devcontainer/update.shとDockerfileの構成を使用して、問題を再現します。initializeCommandがイメージのビルド前に実行され、その出力がログに表示されれば完了です。

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

説明

I have the below configuration on the devcontainer.json file and I want to run some scripts before dockerbuild starts but the "initializeCommand" is not executed when the container is started.

{
	"name": "poc",
	"initializeCommand": "bash .devcontainer/update.sh",
	"build": {
		"dockerfile": "Dockerfile",
	},
	"service": "app",
	
	

	"remoteUser": "node",
	"features": {
		"ghcr.io/devcontainers/features/git:1": {
			"version": "os-provided"
		}
	}
}

There are not logs for this as well i can only see logs starting from building image

envbuilder - Build development environments from repositories in a container

#1: 📦 Cloning https://github.com/****/**** to /workspaces/poc

#1: 📦 The repository already exists! [4.421296ms]
#2: Deleting filesystem...
#2: 🏗️ Building image...
主要言語
Go
スター
301
フォーク
64
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

coder/envbuilder のほかの issue

coder/envbuilder の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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