erlang / docker-erlang-otp

the Official Erlang OTP image on Docker Hub

Home Page:https://hub.docker.com/_/erlang/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rebuild Alpine images using Alpine 3.10

rinpatch opened this issue · comments

Current Alpine images are built with Alpine 3.9.4. When using the image to build OTP releases with bundled ERTS, we noticed that it won't run on Alpine 3.10, exiting with dlsym: Resource temporarily unavailable.

According to this bug it is because of musl changes and just needs a rebuild on a newer musl version. I wasn't able to find anything suspicious in the musl changelog, but swapping erlang:alpine with alpine:latest and installing Erlang from Alpine's repos fixed the issue and now OTP releases built in the container run on both 3.10 and below.

I'll note here that there were issues building on 3.10 but @beardedeagle got it working so we should talk to him and look at how his images are building on 3.10.

I have 3.10 working as well, by making use of a patchfile. Are you accepting a PR for this issue?

@wuhkuh please send a PR.

Note I opened a PR on OTP for this erlang/otp#2346

But think it may be best to change it to just error if hipe is enabled.

Yes I'm currently using the patchfile as well, but will be releasing a different image in parallel with hipe disabled as well

Any hope to have this image available soon?

@zbikmarc they will have to be with hipe disabled. Which I think is fine for just the alpine image if it is clear in the readme and add a label that says hipe=off or something to the image. What do others thing?

My plan was to provide both with explicit call out to patch file, in case people need hipe for some reason I don't know about.

I think for the official images the patch shouldn't be used.

Could also just wait for 22.0.8 which will disable hipe automatically when built on alpine.

@tsloughter +1. Apologies if i'm unfamiliar with erlang release cycles but when can we expect 22.0.8 to drop?

@dcherniv I don't think they have a schedule for patch releases, so I'm not sure.

We release scheduled patches about every 3 months. OTP-22.1 will be released next week and includes the hipe patch.

@garazdawi ah, perfect, thanks!