Providing a sane working environment for coding in OCaml/ReasonML in Emacs
963
After getting frustrated by instructions on setting up ReasonML on Windows, I decided to build a Docker image that would provide a sane working environment for coding in ReasonML.
The image contains:
docker run --rm -it dtreskunov/reasonml emacs
This will mount the source you have (on the Docker host) as the /project directory in the container. On Windows, <path-to-project> should be of the form /c/users/....
docker run --rm -it -v /<path-to-project>:/src -w /project dtreskunov/reasonml emacs .
choco install -y vcxsrv. Make sure that access controls are disabled. See here for more details.192.168.1.100.docker run --rm -it --net=host dtreskunov/reasonml emacs -d 192.168.1.100:0
This image uses the "alternative" installation method mentioned in ReasonML docs (OPAM). It supports the following workflow for setting up a new project:
/project) (see below)/template-project:
opam pin add <project-name> /project --no-action to tell OPAM that <project-name> is installed locally in this locationopam depext --install <project-name> to tell OPAM to install dependencies, compile, and install the projectopam upgrade <project-name> - installs build artifacts into ~/.opam/4.05.0jbuilder build @install - puts artifacts into _build/install/default, which is used by the Merlin Emacs pluginSee here for an explanation of this workflow.
Content type
Image
Digest
Size
997.9 MB
Last updated
over 8 years ago
docker pull dtreskunov/reasonml