Versions of Elixir build on top of Balena base images.
This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2022-11-15 12:30:51 +13:00
alpine Fix incorrect deps for alpine containers. 2020-04-27 21:33:02 +12:00
debian Use the same strategy as balena-erlang to reduce the number of builds. 2020-04-27 20:59:32 +12:00
.gitignore Don't bust the cache whenever the versions or checksums change. (Same as change in the balena-erlang repo). 2020-03-10 10:11:29 +13:00
.gitlab-ci.yml Set up Gitlab CI DAG. 2020-10-08 17:37:33 +13:00
build.sh Alpine 3.11 -> 3.12. 2020-10-08 16:11:29 +13:00
mirror.sh Oops. Forgot to change the mirror configuration. 2020-10-19 16:41:56 +13:00
README.md Initial revision. 2019-11-30 09:13:57 +13:00
shasums Elixir 1.14.2. 2022-11-15 12:30:51 +13:00
versions Elixir 1.14.2. 2022-11-15 12:30:51 +13:00

Balena Elixir

This repository contains scripts to build versions of Elixir on top of Balena's standard base images. This gives us access to the great features built into Balena's images such as cross-compilation, init system and UDEV.

These images are built using my balena-erlang images as a base.

Please note that these are unofficial, unsupported images.

How to pick an image:

This repository contains images build for several architectures in both Debian and Alpine distributions. There are also -build variants, which are mainly used for caching but contain all the development dependencies needed to compile Erlang. If you're having trouble getting a dependency to build try using a -build variant.

registry.gitlab.com/jimsy/balena-elixir/<arch>-<distro>(-build|):<elixir_version>-<distro_version>

Image names:

  • <arch> is the value corresponding to the BALENA_ARCH variable, not the Docker arch type.
  • <distro> is the Linux distribution. At this time only debian or alpine.
  • <elixir_version> is the Elixir version. You can also skip the patch number and just specify the major and minor versions. Only relatively recent versions of Elixir are built, based on the versions of Erlang I was able to build. See the balena-erlang repository for more information.
  • <distro_version> is the Linux distribution version or codename.

Too see a full list of available images and tags see this project's container registry page.

Examples:

registry.gitlab.com/jimsy/balena-elixir/armv7hf-debian:1.9-buster

An armv7hf (suitable for a Rasperry Pi 2 or 3) image of the latest version of Elixir 1.9 on Debian buster.

registry.gitlab.com/jimsy/balena-elixir/aarch64-alpine:1.5.3

An aarch64 (suitable for Raspberry Pi 3 or 4) image of Elixir 1.5.3 on the most recent version of Alpine.

registry.gitlab.com/jimsy/balena-elixir/i386-debian:1.8

An i386 (suitable for Intel NUC or other industrial computer) image of the latest release of Elixir 1.8 on the latest release of Debian.

Dockerfile.template

In your Balena project you can use %%BALENA_ARCH%% instead of your machine name to select the image you want, eg. FROM registry.gitlab.com/jimsy/balena-elixir/%%BALENA_ARCH%%-alpine:1.9.