initializeCommand not executed in envbuilder
- Lingua principale
- Go
- Stelle
- 300
- Fork
- 64
- Merge medio
- 20m
- PR unite (30g)
- 1
Descrizione
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...
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start with the envbuilder entry point that processes devcontainer.json, then trace how initializeCommand is handled before the Dockerfile build. Use the shown .devcontainer/update.sh and Dockerfile configuration to reproduce the issue. Done means initializeCommand runs before image building and its output appears in the logs.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, go
- Ambito
- build-system, devops
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100