Haxe 2.x and Docker

156 views
Skip to first unread message

Tarwin Stroh-Spijer

unread,
May 4, 2017, 6:21:45 PM5/4/17
to haxe...@googlegroups.com
Hi,

Trying to get Haxe 2.10 working on Docker.

Having lots of problems trying to get the correct packages including Haxe,Neko and Haxelib all to install and work.

Has anyone else got this working properly? Hints? Docker images available?

Any help would be great!


Tarwin Stroh-Spijer
_______________________

phone: +1 650 842 0920

Developer at Fanplayr Inc. (Palo Alto)
Original at Touch My Pixel (touchmypixel.com)
_______________________

Guilherme Medeiros

unread,
May 5, 2017, 9:36:47 AM5/5/17
to haxe...@googlegroups.com
Ive never tried this, but it got me curious.

I think you should, at a basic level, try to use an Ubuntu Docker image and try to install Haxe though the PPA, as explained at Haxe website - https://haxe.org/download/linux/

If you get this things to work, we can try to optimize things.

Try using the Alpine Linux image instead of Ubuntu, since it is smaller... By doing this, you wont be able to use the PPA.
Instead, you can use this awesome install script crafted by Joshua Granick - https://gist.github.com/jgranick/8cc40e2e0f277146725f
I dont know if it will work on Alpine, but you can tweak the script and publish your version on Github.

Finally,
after all the fun you had,
you can try the official Haxe Image - https://hub.docker.com/_/haxe/

I hope I was helpful.
:)




--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Tarwin Stroh-Spijer

unread,
May 5, 2017, 3:11:37 PM5/5/17
to haxe...@googlegroups.com
Guilherme, thanks for your response.

Sadly, that's what we have tried. It would be easy if it was Haxe 3.x that we wanted, but it's the older 2.x branch that we're stuck with.

Getting Haxe 2.x to install isn't too much of a problem so far, but it's the old Neko that just doesn't want to run.

Regards,



Tarwin Stroh-Spijer
_______________________

phone: +1 650 842 0920

Developer at Fanplayr Inc. (Palo Alto)
Original at Touch My Pixel (touchmypixel.com)
_______________________

Guilherme Medeiros

unread,
May 5, 2017, 3:42:24 PM5/5/17
to haxe...@googlegroups.com
You probably saw this old Haxe page - http://old.haxe.org/download/manual_install?version=15673
It have some old content that may be helpful...

Guilherme Medeiros

unread,
May 5, 2017, 3:44:35 PM5/5/17
to haxe...@googlegroups.com
This blog post from Joshua has, at the end of the post, a way to install Haxe 2.7 from a .deb file.
Is it somewhat helpful?

Tarwin Stroh-Spijer

unread,
May 5, 2017, 5:10:12 PM5/5/17
to haxe...@googlegroups.com
Thanks again Guilherme. Sadly, they're all quite old, and just don't work well anymore.

Some info on a problem:

---

Trying to run haxe 2.10 with neko 1.8.2 in Docker on Mac.

Tried manual install (http://old.haxe.org/download/manual_install) using Ubuntu:


Haxe and Neko both error with:

getcontext failed: Use another register retrieval method?
Aborted

---

Seems like we're trying to run a 32bit on a 64bit system? Don't really know :(



Tarwin Stroh-Spijer
_______________________

phone: +1 650 842 0920

Developer at Fanplayr Inc. (Palo Alto)
Original at Touch My Pixel (touchmypixel.com)
_______________________

JLM

unread,
May 8, 2017, 8:50:28 AM5/8/17
to Haxe, tar...@touchmypixel.com
Tarwin

What are the issues with moving the code to Haxe3 ( http://old.haxe.org/manual/haxe3/migration ), do you need some help porting, is it down to PHP versions?

Best


Justin

Cauê Waneck

unread,
May 8, 2017, 9:26:32 AM5/8/17
to haxe...@googlegroups.com
Hey Tarwin!

Neko is a little picky about its location. Try adding the neko installation to /usr/lib/neko , and adding the .so file to /usr/lib. Also, Neko has some dependencies - in special, libgc (for the vm), and pcre (for regular expressions). Make sure you've got both of them installed

Also make sure that both Haxe and Neko are the same architecture - e.g. both of them are 32-bit or 64-bit binaries

2017-05-05 16:11 GMT-03:00 Tarwin Stroh-Spijer <tar...@touchmypixel.com>:

Russ

unread,
May 8, 2017, 9:54:58 AM5/8/17
to Haxe, tar...@touchmypixel.com
https://github.com/ivmai/bdwgc/issues/133

You might be running into GETCONTEXT_FPU_EXCMASK_BUG in libgc.

ma...@fanplayr.com

unread,
May 8, 2017, 6:53:42 PM5/8/17
to Haxe, tar...@touchmypixel.com
Hi everyone,

Tarwin was asking questions on my behalf. I've since been able to get things working in Docker fairly easily. I've attached my Dockerfile.

The problem seems to be caused by Docker's seccomp (secure computing mode) profile. Everything works fine when I disable it.

Thanks for all the support!

# Run in Dockerfile directory to build image
docker build
-t haxe .

# Run the image without seccomp profile
docker run
-it --security-opt seccomp=unconfined haxe

# Try running `haxe` inside container with and without the profile
Dockerfile

Tarwin Stroh-Spijer

unread,
May 8, 2017, 7:18:30 PM5/8/17
to haxe...@googlegroups.com
As to why we haven't upgraded? Converting code is pretty easy (compile time checking and all). It's that we keep data in Memcache as serialized objects which change a bit with Haxe 3, and it's not an option to simply lose a day or so of data that's in cache.

We may still look at ways to do it, it just hasn't been a priority.

Thanks again people!



Tarwin Stroh-Spijer
_______________________

phone: +1 650 842 0920

Developer at Fanplayr Inc. (Palo Alto)
Original at Touch My Pixel (touchmypixel.com)
_______________________

Reply all
Reply to author
Forward
0 new messages