Skip to content
Alex Albalá Díaz edited this page Jul 8, 2014 · 3 revisions

Docker is an application to sandboxing of services and applications. By using this docker image you will avoid installing the mono runtime, build-essential, cmake and other software. You will onlu need to install docker on your Linux/Mac computer.

Take a look at https://docs.docker.com/installation/

Getting the image

docker pull gerardsoleca/alter-native

Remember that in some cases instead of being docker can be named as docker.io

Running in Docker

Now we will proceed to use this image has a container instance, in fact, we will use the container as the AlterNative itself.

run

docker run -v /executables:/executables -t -i gerardsoleca/alternative <BINARYNAME>

The -v argument is to mount and share a volume from the host to the container. In this case you can change the first /executables pointing to the folder where your C# assemblies live, but the second part must remain intact. Then the <BINARYNAME> is where you must put the assembly name to be translated. This assembly must be in the folder that you previously shared to the container.

After running this command, in the shared folder you will find the generated source-code and the compiled binary.

Clone this wiki locally