Update Elixir and Erlang versions (#1939)

This commit is contained in:
Jonatan Kłosko 2023-05-31 11:47:31 +02:00 committed by GitHub
parent 9c8aa10c4c
commit 6256b66bd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 8 deletions

View file

@ -6,7 +6,7 @@ on:
tags:
- "v*.*.*"
env:
otp: "26.0"
otp: "25.3.2"
elixir: "1.15.0-rc.1"
jobs:
assets:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
env:
otp: "26.0"
otp: "25.3.2"
elixir: "1.15.0-rc.1"
jobs:
main:

View file

@ -4,7 +4,7 @@ on:
types: [opened, synchronize, reopened, closed]
env:
otp: "26.0"
otp: "25.3.2"
elixir: "1.15.0-rc.1"
jobs:

View file

@ -1,4 +1,5 @@
ARG BASE_IMAGE=hexpm/elixir:1.14.2-erlang-24.3.4.2-debian-bullseye-20210902-slim
# TODO: update the image once available on hexpm/ builds
ARG BASE_IMAGE=jonatanklosko/elixir:1.15.0-rc.1-erlang-25.3.2-debian-bullseye-20230522-slim
# Stage 1
# Builds the Livebook release
@ -13,6 +14,15 @@ RUN apt-get update && apt-get upgrade -y && \
WORKDIR /app
# This flag disables JIT behaviour that causes a segfault under QEMU.
# Note that we set this runtime flag only during the build stage and
# it has no impact when running the final image. See [1] for more
# information.
#
# [1]: https://github.com/erlang/otp/pull/6340
ENV ERL_FLAGS="+JPperf true"
# TODO: use "+JMsingle true" on OTP 26
# Install hex and rebar
RUN mix local.hex --force && \
mix local.rebar --force

View file

@ -1,9 +1,10 @@
ARG ELIXIR_VERSION
ARG ERLANG_VERSION
ARG UBUNTU_VERSION
ARG CUDA_VERSION
FROM hexpm/elixir:${ELIXIR_VERSION}-erlang-${ERLANG_VERSION}-ubuntu-focal-20211006 AS elixir
FROM hexpm/elixir:${ELIXIR_VERSION}-erlang-${ERLANG_VERSION}-ubuntu-${UBUNTU_VERSION} AS elixir
FROM nvidia/cuda:${CUDA_VERSION}-cudnn8-devel-ubuntu20.04

View file

@ -5,13 +5,15 @@
set -ex
cd "$(dirname "$0")/.."
elixir=1.14.2
erlang=24.3.4.2
elixir="1.15.0-rc.1"
erlang="25.3.2"
ubuntu="focal-20230126"
docker buildx build --push --platform linux/amd64,linux/arm64 \
-t ghcr.io/livebook-dev/utils:elixir-cuda11.8 \
--build-arg ELIXIR_VERSION=$elixir \
--build-arg ERLANG_VERSION=$erlang \
--build-arg UBUNTU_VERSION=$ubuntu \
--build-arg CUDA_VERSION=11.8.0 \
-f docker/base/elixir-cuda.dockerfile \
docker/base

View file

@ -5,7 +5,7 @@ defmodule Livebook.MixProject do
@version "0.9.2"
@description "Automate code & data workflows with interactive notebooks"
@app_elixir_version "1.14.5"
@app_elixir_version "1.15.0-rc.1"
@app_rebar3_version "3.19.0"
def project do