We are maintaining a container prepared with all the libraries and tools required to run Mastercode. This is the Dockerfile for the Mastercode container in case you want to see in particular which software is installed.
Download or Clone using the git tools the last version of Mastercode, on your Machine, from:
and uncompress the zip file mcpp-master.zip, for example, in your projects directory (/Users/youruserid/projects/). You will need about 1GB of space.
mv ../Downloads/mcpp-master.zip .
You will end up with a directory called ./projects/mcpp-master/ under you main directory.
Launch the Docker application if you have not already done so, and open a new terminal on the Mac. If Docker was not running previously, you should always open a new terminal for the docker commands to be available.
In this terminal, download the Mastercode container by:
Then you can simply launch the container mounting your Mac $HOME directory on the /mnt directory of the container:
You may as well mount only the Mastercode directory, bearing in mind that nothing else from your $HOME will be available inside the container:
You will end up in a terminal, in which you will appear as root (with the "#" symbol). Do not be impressed by that: it is not a fake root, you will not be altering anything.
and convince yourself that you are now on Linux. Typing:
you will see your $HOME directory, or the directory you decided to mount on the "-v" option.
On the container terminal you can now compile and run Mastercode as usual:
Will take a while to compile the first time (order of 20 minutes on recent Mac models), as it downloads all the software tools of the different components, and compiles from scratch. When compilation is done, you can already run it:
In the typical situation you will be editing your local copy of Mastercode to add features, etc... and compiling and testing it on the container terminal.
In this respect:
If you want to save them, you need to save the status of the container (see https://docs.docker.com/engine/reference/commandline/commit for detailed instructions on Docker software)
Last updated 3th December 2016