Pre-installed OCaml with OCaml package manager (opam) for devcontainer.
You can find the images in ghcr.io/sambyeol/ocaml-devcontainer.
Make a devcontainer setting file at .devcontainer/devcontainer.json in your project.
{
"image": "ghcr.io/sambyeol/ocaml-devcontainer",
"customizations": {
"vscode": {
"extensions": [
"ocamllabs.ocaml-platform"
]
}
}
}Then, reopen in container.
Tags are named by <version>-<distribution>[-root].
- Images are tagged with its OCaml version. For example,
latesttags mean that the image is created with the latest version of OCaml. - There are various base OS distributions. available distributions are as follows:
debian: latest Debian (default)ubuntu: latest Ubuntu LTS
-rootimages come without non-root usersambyeol.
All images are cross-compiled with docker-buildx.
Some system libraries for emulation are needed.
$ sudo apt-get update
$ sudo apt-get install -y binfmt-support qemu qemu-user-staticYou can build images for linux/amd64 and linux/arm64 architectures with the following command.
$ docker buildx bake --push