Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erlang: Add support for Erlang base images #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nghiant2710
Copy link
Contributor

This commit adds support for v22.0.7 (latest), v21.3.8.6 and v20.3.8.22 for Debian and Alpine Linux.

Change-type: patch
Signed-off-by: Trong Nghia Nguyen [email protected]

Erlang binaries built by https://github.com/balena-io/erlang-arm (Kudos to @jimsynz )

This commit adds support for v22.0.7 (latest), v21.3.8.6 and v20.3.8.22 for Debian and Alpine Linux.

Change-type: patch
Signed-off-by: Trong Nghia Nguyen <[email protected]>
@nghiant2710
Copy link
Contributor Author

@jimsynz, FYI the autogenerated Dockerfile from this contract will be like this

FROM balenalib/amd64-debian:buster

ENV ERLANG_VERSION 22.0.7
ENV REBAR3_VERSION 3.12.0

# runtime deps
RUN install_packages libodbc1 libssl1.1 libsctp1 libtinfo5

RUN set -x \
	&& fetchDeps='curl' \
	&& install_packages "$fetchDeps" \
	&& rootDir='/erlang' \
	&& mkdir -p $rootDir \
	&& curl -SLO "http://resin-packages.s3.amazonaws.com/erlang/erlang$ERLANG_VERSION.linux-amd64.tar.gz" \
	&& echo "c9ade73d57b5f2df25bc733e1075ea05ef46a57495a549bb62d4f60552414854  erlang$ERLANG_VERSION.linux-amd64.tar.gz" | sha256sum -c - \
	&& tar -xzf "erlang$ERLANG_VERSION.linux-amd64.tar.gz" -C $rootDir --strip-components=1 \
	&& rm -f erlang$ERLANG_VERSION.linux-amd64.tar.gz \
	&& cd $rootDir \
	&& install -v ./rebar3 /usr/local/bin/ \
	&& apt-get purge -y --auto-remove $fetchDeps

ENV PATH /erlang/bin:$PATH

CMD ["erl"]

(Dockerfile amd64 Debian and Erlang v22.0.7)

I also built some images for you guys to test:

  • nghiant2710/test:erlang-22.0.7-amd64-debian - amd64 Debian Buster and Erlang v22.0.7.
  • nghiant2710/test:erlang-22.0.7-amd64-alpine - amd64 Alpine Linux 3.6 and Erlang v22.0.7.
  • nghiant2710/test: erlang-22.0.7-rpi-alpine - armv6 Alpine Linux 3.6 and Erlang v22.0.7.

jimsynz
jimsynz previously approved these changes Sep 10, 2019
Copy link

@jimsynz jimsynz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fantastic. I was successfully able to pull your test containers and compile elixir on them.

excited!

@kaisoz kaisoz added the versionbot/pr-draft Draft PR - Don't merge this PR automatically label Jun 10, 2020
@ghost ghost dismissed jimsynz’s stale review June 10, 2020 14:20

Approval reviews not allowed in Draft PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
versionbot/pr-draft Draft PR - Don't merge this PR automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants