Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postCreateCommand doesn't run in the right context? #1084

Open
cgestes opened this issue May 23, 2024 · 0 comments
Open

postCreateCommand doesn't run in the right context? #1084

cgestes opened this issue May 23, 2024 · 0 comments
Assignees
Labels

Comments

@cgestes
Copy link

cgestes commented May 23, 2024

What happened?

[16:37:48] debug Run post create commands...
[16:37:48] info Run command : ./bash/local/codespaces_init.sh...
[16:37:48] debug Executing command : [su codespace -c ./bash/local/codespaces_init.sh]...
[16:37:48] error ./bash/local/codespaces_init.sh: line 3: pyenv: command not found

pyenv is installed in our Dockerfile, it is working in codespace.

What did you expect to happen instead?
pyenv should be found.

.devcontainer:

{
	"build": {
		"dockerfile": "../Dockerfile"
	},
	"postCreateCommand": "./bash/local/codespaces_init.sh"
}

Local Environment:

  • DevPod Version: 0.5.7
  • Operating System: mac
  • ARCH of the OS: ARM64

DevPod Provider:

  • Local/remote provider: docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants