How to load a devcontainer with julia into github codespaces in 2025

As of 2025, I would like to know how to add a container preloaded with julia to github’s codespaces.

I tried these answers to load julia 1.11.3 into github’s codespaces, but I failed:

Maybe the answer is there already, but I am not an expert in these topics. Please advise.

1 Like

Bit late to the party, but here is a full example: deRSE25-workshop/.devcontainer/devcontainer.json at 370778a37ddd1a8fbf3818b24af97daf0ab907b9 · JuliaHPC/deRSE25-workshop · GitHub. The key bit is

With the image attribute you specify the container you want to use. It may be useful to provide an image with the prebuilt environment you want to use, which is also done in deRSE25-workshop/Dockerfile at 370778a37ddd1a8fbf3818b24af97daf0ab907b9 · JuliaHPC/deRSE25-workshop · GitHub (but this is activating the environment of a Pluto environment, which complicates the Dockerfile a bit), and the image is automatically built on GitHub actions at deRSE25-workshop/.github/workflows/DockerPublish.yml at 370778a37ddd1a8fbf3818b24af97daf0ab907b9 · JuliaHPC/deRSE25-workshop · GitHub. Instructions for end users to run the Codespace: deRSE25-workshop/README.md at 370778a37ddd1a8fbf3818b24af97daf0ab907b9 · JuliaHPC/deRSE25-workshop · GitHub (you need to expand the “Other options for running the notebooks without installing Julia on your machine” section)

2 Likes