Skip to content

Update base image to erlang:28 * Setup otp-27* #115

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

Merged
merged 1 commit into from
Jun 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 1.18/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM erlang:27
FROM erlang:28

# elixir expects utf8.
ENV ELIXIR_VERSION="v1.18.4" \
2 changes: 1 addition & 1 deletion 1.18/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM erlang:27-alpine
FROM erlang:28-alpine

# elixir expects utf8.
ENV ELIXIR_VERSION="v1.18.4" \
27 changes: 27 additions & 0 deletions 1.18/otp-27-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM erlang:27-alpine

# elixir expects utf8.
ENV ELIXIR_VERSION="v1.18.4" \
LANG=C.UTF-8

RUN set -xe \
&& ELIXIR_DOWNLOAD_URL="https://github.com/elixir-lang/elixir/archive/${ELIXIR_VERSION}.tar.gz" \
&& ELIXIR_DOWNLOAD_SHA256="8e136c0a92160cdad8daa74560e0e9c6810486bd232fbce1709d40fcc426b5e0" \
&& buildDeps=' \
ca-certificates \
curl \
make \
' \
&& apk add --no-cache --virtual .build-deps $buildDeps \
&& curl -fSL -o elixir-src.tar.gz $ELIXIR_DOWNLOAD_URL \
&& echo "$ELIXIR_DOWNLOAD_SHA256 elixir-src.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/local/src/elixir \
&& tar -xzC /usr/local/src/elixir --strip-components=1 -f elixir-src.tar.gz \
&& rm elixir-src.tar.gz \
&& cd /usr/local/src/elixir \
&& make install clean \
&& find /usr/local/src/elixir/ -type f -not -regex "/usr/local/src/elixir/lib/[^\/]*/lib.*" -exec rm -rf {} + \
&& find /usr/local/src/elixir/ -type d -depth -empty -delete \
&& apk del .build-deps

CMD ["iex"]
29 changes: 29 additions & 0 deletions 1.18/otp-27-slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM erlang:27-slim

# elixir expects utf8.
ENV ELIXIR_VERSION="v1.18.4" \
LANG=C.UTF-8

RUN set -xe \
&& ELIXIR_DOWNLOAD_URL="https://github.com/elixir-lang/elixir/archive/${ELIXIR_VERSION}.tar.gz" \
&& ELIXIR_DOWNLOAD_SHA256="8e136c0a92160cdad8daa74560e0e9c6810486bd232fbce1709d40fcc426b5e0" \
&& buildDeps=' \
ca-certificates \
curl \
make \
' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& curl -fSL -o elixir-src.tar.gz $ELIXIR_DOWNLOAD_URL \
&& echo "$ELIXIR_DOWNLOAD_SHA256 elixir-src.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/local/src/elixir \
&& tar -xzC /usr/local/src/elixir --strip-components=1 -f elixir-src.tar.gz \
&& rm elixir-src.tar.gz \
&& cd /usr/local/src/elixir \
&& make install clean \
&& find /usr/local/src/elixir/ -type f -not -regex "/usr/local/src/elixir/lib/[^\/]*/lib.*" -exec rm -rf {} + \
&& find /usr/local/src/elixir/ -type d -depth -empty -delete \
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /var/lib/apt/lists/*

CMD ["iex"]
20 changes: 20 additions & 0 deletions 1.18/otp-27/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM erlang:27

# elixir expects utf8.
ENV ELIXIR_VERSION="v1.18.4" \
LANG=C.UTF-8

RUN set -xe \
&& ELIXIR_DOWNLOAD_URL="https://github.com/elixir-lang/elixir/archive/${ELIXIR_VERSION}.tar.gz" \
&& ELIXIR_DOWNLOAD_SHA256="8e136c0a92160cdad8daa74560e0e9c6810486bd232fbce1709d40fcc426b5e0" \
&& curl -fSL -o elixir-src.tar.gz $ELIXIR_DOWNLOAD_URL \
&& echo "$ELIXIR_DOWNLOAD_SHA256 elixir-src.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/local/src/elixir \
&& tar -xzC /usr/local/src/elixir --strip-components=1 -f elixir-src.tar.gz \
&& rm elixir-src.tar.gz \
&& cd /usr/local/src/elixir \
&& make install clean \
&& find /usr/local/src/elixir/ -type f -not -regex "/usr/local/src/elixir/lib/[^\/]*/lib.*" -exec rm -rf {} + \
&& find /usr/local/src/elixir/ -type d -depth -empty -delete

CMD ["iex"]
2 changes: 1 addition & 1 deletion 1.18/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM erlang:27-slim
FROM erlang:28-slim

# elixir expects utf8.
ENV ELIXIR_VERSION="v1.18.4" \
4 changes: 2 additions & 2 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu

declare -a -r versions=(
@@ -90,7 +90,7 @@ for version in "${versions[@]}"; do
done
versionAliases+=( $version ${aliases[$version]:-} )

for variant in '' slim alpine otp-23-slim otp-{21,22,24,25,26}{,-alpine,-slim}; do
for variant in '' slim alpine otp-23-slim otp-{24,25,26,27}{,-alpine,-slim}; do
dir="$version${variant:+/$variant}"
[ -f "$dir/Dockerfile" ] || continue