This dockers are on the docker.com hub so you can download each docker with the command:
docker pull malkam03/<dockername>
But if you want to contribute or see the dockerfile, you can just jump in the respective directory.
To use this docker you'll first need to install docker. Depending on your OS the installation binary and instructions can be found at the docker's page. For Debian based GNU Linux distributions you can just type on a terminal:
sudo apt-get remove docker docker-engine docker.io # To remove older docker versions
sudo apt-get update # To update packages indexes
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common # Prerequisites for the instalation method
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - # To add the Dockers repo GPG key
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" # To add the new repository to the index
sudo apt-get update
sudo apt-get install docker-ce # To install docker
Add the following lines on the file:
alias dhaxe='sudo docker run --name dhaxe --rm -v "$(pwd)":/tmp/haxe -w /tmp/haxe malkam03/haxedevelop:latest haxe'
alias dhaxelib='sudo docker run --name dhaxelib --rm -v "$(pwd)":/tmp/haxe -w /tmp/haxe malkam03/haxedevelop:latest haxelib'
alias dhaxecompile='sudo docker run --name dhaxelib --rm -v "$(pwd)":/tmp/haxe -w /tmp/haxe malkam03/haxedevelop:latest haxelib run nme build "$(find . -name *.nmml)"'
alias androidupload='$ANDROID_HOME/platform-tools/adb -d install -r $(find . -name *debug.apk)'
Lastly reload the aliases:
source ~/.bashrc
And now you are ready to go, to compile just type on a terminal:
dhaxecompile <target>
And to upload to the android device type:
androidupload
Alternatively you can use the alias dhaxelib to invoke haxelibs from the container, for example to build:
dhaxelib run nme build <project.nmml> <target>
This project is licensed under the MIT License - see the LICENSE.md file for details.