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.
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