Sign inSign up

imsky/haxe

By imsky

Updated over 8 years ago

Image
5

1.6K

imsky/haxe repository overview

Haxe for Docker

Requirements

Install

docker pull imsky/haxe

Usage

docker run --rm -v "$(pwd)":/tmp/hx -w /tmp/hx imsky/haxe haxe build.hxml

Persistent mode

To enable additional compiler targets such as Java and C#, you'll need to run the container in persistent mode.

Enabling persistence
docker kill hx && docker rm hx
docker run -d -v "$(pwd)":/tmp/hx -w /tmp/hx \
--name hx imsky/haxe /root/scripts/background
Enabling Java builds
docker exec hx /root/scripts/install-java
Enabling C# builds
docker exec hx /root/scripts/install-cs

Building

docker build -t imsky/haxe:dev .

You should see the following once the build finishes:

Test.hx:5: Hello world.
> C++ passed
Hello world.
> JavaScript passed
Hello world.
> Python passed
Test.hx:5: Hello world.
> PHP passed
Test.hx:5: Hello world.
> Neko passed

Clean up after builds:

docker ps -a --no-trunc | grep Exit | awk '{print $1}' | xargs -r docker rm
docker images --no-trunc | grep none | awk '{print $3}' | xargs -r docker rmi

License

docker-haxe is licensed under the MIT license.

Credits

docker-haxe is a project by Ivan Malopinsky.

Tag summary

Content type

Image

Digest

sha256:6f2c5d633

Size

241.5 MB

Last updated

over 8 years ago

docker pull imsky/haxe