coder / coder/envbuilder

initializeCommand not executed in envbuilder

Open
#395 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
300
Forks
64
Avg merge
20m
Merged PRs (30d)
1

Description

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...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.