diff --git a/lib/bob/job/otp_checker.ex b/lib/bob/job/otp_checker.ex index 93327d8..fc395c1 100644 --- a/lib/bob/job/otp_checker.ex +++ b/lib/bob/job/otp_checker.ex @@ -1,6 +1,6 @@ defmodule Bob.Job.OTPChecker do @repo "erlang/otp" - @linuxes ["ubuntu-20.04", "ubuntu-22.04"] + @linuxes ["ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04"] def run(_type) do for linux <- @linuxes, @@ -19,6 +19,8 @@ defmodule Bob.Job.OTPChecker do defp build_ref?("ubuntu-20.04", "maint-" <> version), do: build_ubuntu_20?(version) defp build_ref?("ubuntu-22.04", "OTP-" <> version), do: build_ubuntu_22?(version) defp build_ref?("ubuntu-22.04", "maint-" <> version), do: build_ubuntu_22?(version) + defp build_ref?("ubuntu-24.04", "OTP-" <> version), do: build_ubuntu_22?(version) + defp build_ref?("ubuntu-24.04", "maint-" <> version), do: build_ubuntu_22?(version) defp build_ref?(_linux, "OTP-" <> _), do: true defp build_ref?(_linux, "maint" <> _), do: true defp build_ref?(_linux, "master" <> _), do: true diff --git a/priv/scripts/otp/otp-ubuntu-24.04.dockerfile b/priv/scripts/otp/otp-ubuntu-24.04.dockerfile new file mode 100644 index 0000000..adb05ae --- /dev/null +++ b/priv/scripts/otp/otp-ubuntu-24.04.dockerfile @@ -0,0 +1,35 @@ +FROM ubuntu:24.04 + +ARG DEBIAN_FRONTEND=noninteractive +ENV UBUNTU_VERSION=24.04 + +RUN apt-get update + +RUN apt-get install -y \ + wget \ + ca-certificates \ + gcc \ + g++ \ + make \ + automake \ + autoconf \ + libwxgtk3.2-dev \ + libgl1-mesa-dev \ + libglu1-mesa-dev \ + libpng-dev \ + libreadline-dev \ + libncurses-dev \ + libssl-dev \ + libxslt-dev \ + libffi-dev \ + libtool \ + unixodbc-dev \ + fop \ + xsltproc + +RUN mkdir -p /home/build/out +WORKDIR /home/build + +COPY otp/build_otp_ubuntu.sh /home/build/build.sh +RUN chmod +x /home/build/build.sh +CMD ./build.sh