initializeCommand not executed in envbuilder

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"
}
}
}
{
"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: :package: Cloning https://github.com/****/**** to /workspaces/poc

#1: :package: The repository already exists! [4.421296ms]
#2: Deleting filesystem...
#2: :construction_site: Building image...
envbuilder - Build development environments from repositories in a container

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

#1: :package: The repository already exists! [4.421296ms]
#2: Deleting filesystem...
#2: :construction_site: Building image...
can anyone help me with the why this config not working?
5 Replies
Codercord
Codercord2mo ago
<#1298641626599653446>
Category
Bug report
Product
code-server
Platform
Linux
Logs
Please post any relevant logs/error messages.
Shreeram Silwal
Shreeram SilwalOP2mo ago
There is not any error logs and messages regarding initializeCommand.
Phorcys
Phorcys2mo ago
hey @Shreeram Silwal, I'm not sure that initializeCommand is currently supported by envbuilder
Phorcys
Phorcys2mo ago
thanks for opening https://github.com/coder/envbuilder/issues/395, I will close this thread so that our engineers can take a look at it over on GitHub
GitHub
Issues · coder/envbuilder
Build development environments from a Dockerfile on Docker, Kubernetes, and OpenShift. Enable developers to modify their development environment quickly. - Issues · coder/envbuilder
Shreeram Silwal
Shreeram SilwalOP2mo ago
@Phorcys thanks for the update, you can close this thread.
Want results from more Discord servers?
Add your server