Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions lib/bob/job/docker_checker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ defmodule Bob.Job.DockerChecker do
]},
{"debian",
[
# 13
~r/^trixie-\d{8}$/,
~r/^trixie-\d{8}-slim$/,
# 12
~r/^bookworm-\d{8}$/,
~r/^bookworm-\d{8}-slim$/,
Expand Down Expand Up @@ -121,6 +124,9 @@ defmodule Bob.Job.DockerChecker do
defp build_erlang_ref?("debian", "bullseye-" <> _, "OTP-1" <> _), do: false
defp build_erlang_ref?("ubuntu", "focal-" <> _, "OTP-1" <> _), do: false

defp build_erlang_ref?("debian", "trixie-" <> _, "OTP-" <> version),
do: build_openssl_3?(version)

defp build_erlang_ref?("debian", "bookworm-" <> _, "OTP-" <> version),
do: build_openssl_3?(version)

Expand Down
50 changes: 50 additions & 0 deletions priv/scripts/docker/erlang-debian-trixie.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
ARG OS_VERSION

FROM debian:${OS_VERSION} AS build

RUN apt-get update
RUN apt-get -y --no-install-recommends install \
autoconf \
dpkg-dev \
gcc \
g++ \
make \
libncurses-dev \
unixodbc-dev \
libssl-dev \
libsctp-dev \
wget \
ca-certificates \
pax-utils

ARG ERLANG

RUN mkdir -p /OTP/subdir
RUN wget -nv "https://github.com/erlang/otp/archive/OTP-${ERLANG}.tar.gz" && tar -zxf "OTP-${ERLANG}.tar.gz" -C /OTP/subdir --strip-components=1
WORKDIR /OTP/subdir
RUN ./otp_build autoconf
RUN ./configure --with-ssl --enable-dirty-schedulers
RUN make -j$(getconf _NPROCESSORS_ONLN)
RUN make -j$(getconf _NPROCESSORS_ONLN) install
RUN make -j$(getconf _NPROCESSORS_ONLN) docs DOC_TARGETS=chunks
RUN make -j$(getconf _NPROCESSORS_ONLN) install-docs DOC_TARGETS=chunks
RUN find /usr/local -regex '/usr/local/lib/erlang/\(lib/\|erts-\).*/\(man\|obj\|c_src\|emacs\|info\|examples\)' | xargs rm -rf
RUN find /usr/local -name src | xargs -r find | grep -v '\.hrl$' | xargs rm -v || true
RUN find /usr/local -name src | xargs -r find | xargs rmdir -vp || true
RUN scanelf --nobanner -E ET_EXEC -BF '%F' --recursive /usr/local | xargs -r strip --strip-all
RUN scanelf --nobanner -E ET_DYN -BF '%F' --recursive /usr/local | xargs -r strip --strip-unneeded

FROM debian:${OS_VERSION} AS final

RUN apt-get update && \
apt-get -y --no-install-recommends install \
ca-certificates \
libodbc2 \
libssl3t64 \
libsctp1 \
netbase && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

COPY --from=build /usr/local /usr/local
ENV LANG=C.UTF-8
Loading