envbuilder icon indicating copy to clipboard operation
envbuilder copied to clipboard

bug: lifecycle script `OnCreateCommand` is not executed.

Open ggjulio opened this issue 1 year ago • 0 comments

The onCreateCommand lifecycle-script is not executed.

Reproduction

I used the devcontainer-kubernetes template with almost no modifications. (just added external auth for git + a few modules )

I can't share a repoduction repo atm, but it should be easy to reproduce :

onCreateCommand": "bash .devcontainer/scripts/setup.sh",

Logs:

envbuilder - Build development environments from repositories in a container
#1: 📦 Cloning https://redacted.com/some-repo.git to /workspaces/some-repo.git...
#1: Enumerating objects: 329
#1: Enumerating objects: 397, done.
Counting objects:   0% (1/397)
#1: Counting objects:   1% (4/397)
[...]
#1: 📦 Cloned repository! [2.173948308s]
#2: Deleting filesystem...
#2: 🏗️ Building image...
#2: Retrieving image manifest mcr.microsoft.com/devcontainers/python:1-3.12-bullseye@sha256:db122da88f43f6e14b207a0062a36e7efce19ff3b6daf5c2d4dac253b552883e
[...]
Done!
#2: Taking snapshot of files...
#2: USER root
#2: Cmd: USER
#2: 🏗️ Built image! [2m48.341392991s]
+ mkdir -p /tmp/code-server
+ mkdir -p /tmp/code-server/lib /tmp/code-server/bin
+ tar -C /tmp/code-server/lib -xzf ~/.cache/code-server/code-server-4.11.0-linux-amd64.tar.gz
+ mv -f /tmp/code-server/lib/code-server-4.11.0-linux-amd64 /tmp/code-server/lib/code-server-4.11.0
+ ln -fs /tmp/code-server/lib/code-server-4.11.0/bin/code-server /tmp/code-server/bin/code-server
Standalone release has been installed into /tmp/code-server/lib/code-server-4.11.0
Extend your path to use code-server:
  PATH="/tmp/code-server/bin:$PATH"
Then run with:
  code-server
Deploy code-server for your team with Coder: https://github.com/coder/coder

ggjulio avatar Jun 28 '24 12:06 ggjulio