How to use pixi-based Docker image in Devcontainer? #2088
Replies: 3 comments 9 replies
-
See also prefix-dev/pixi-docker#42 |
Beta Was this translation helpful? Give feedback.
-
I think it should help if you put the |
Beta Was this translation helpful? Give feedback.
-
Good news: it works! For some reason you must add the following postCreateCommand for it to work. This took many tries to get working. Any ideas why, and any ideas how to fix it upstream so that this is not needed in future? I suspect a 'install global` option that installs pixi.toml globally would do it.
|
Beta Was this translation helpful? Give feedback.
-
Here's the issue:
As described in #2082
docker run -it ghcr.io/geocompx/docker:r-pixi bash R # run your R code!
works great. However, when I put that image in a Devcontainer I do not have access to R from the default terminal. Here's the Devcontainer: https://github.com/geocompx/geocompr/blob/079cc4dde61f9614f2acf8bce08ae3326cd1a82e/.devcontainer.json
Heres the Docker image: https://github.com/geocompx/docker/blob/master/pixi-r/Dockerfile
I wonder, is it something to do with the entrypoint?
Beta Was this translation helpful? Give feedback.
All reactions