Skip to content

Commit

Permalink
Build Ubuntu 24.04 (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed Apr 25, 2024
1 parent bc0c95a commit 356b516
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bob/job/otp_checker.ex
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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
Expand Down
35 changes: 35 additions & 0 deletions priv/scripts/otp/otp-ubuntu-24.04.dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 356b516

Please sign in to comment.