Skip to content

Commit

Permalink
Download Erlang/OTP packages directly
Browse files Browse the repository at this point in the history
Unfortunately the ESL package repositories don't work anymore.
  • Loading branch information
chrzaszcz committed Apr 23, 2024
1 parent 4c125a0 commit 496f6f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
13 changes: 5 additions & 8 deletions tools/pkg/Dockerfile_deb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ FROM $dockerfile_platform AS builder
# Install build deps
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y locales git make zlib1g-dev unixodbc-dev gcc g++ libssl-dev

RUN apt-get -y update && apt-get -y install curl gnupg && \
curl -O http://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && \
dpkg -i erlang-solutions_2.0_all.deb && apt-get update
ARG erlang_version
RUN apt-get install -y esl-erlang=1:$erlang_version
RUN apt-get install -y locales git make zlib1g-dev unixodbc-dev gcc g++ libssl-dev curl

RUN ERLANG_PKG=esl-erlang_${erlang_version}-1~${dockerfile_platform/:/\~}_amd64.deb &&
curl -O https://binaries2.erlang-solutions.com/ubuntu/pool/contrib/e/esl-erlang/$ERLANG_PKG &&
apt-get -y --no-install-recommends install ./$ERLANG_PKG

# Fix locales
RUN locale-gen en_US.UTF-8
Expand All @@ -28,7 +25,7 @@ RUN cp -r ./mongooseim/tools/pkg/scripts/deb .

ARG version
ARG revision

ARG erlang_version
RUN ./deb/build_package.sh $version $revision $erlang_version

# Create image for sharing and validation of built package
Expand Down
3 changes: 2 additions & 1 deletion tools/pkg/Dockerfile_rpm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ RUN localedef -i en_US -f UTF-8 en_US.UTF-8

ARG erlang_version

RUN curl -O https://packages.erlang-solutions.com/erlang-solutions-2.0-1.noarch.rpm && \
RUN curl -O -H "Cache-Control: no-cache, no-store" \
https://packages.erlang-solutions.com/erlang-solutions-2.0-1.noarch.rpm && \
rpm -Uvh erlang-solutions-2.0-1.noarch.rpm && \
yum install -y "esl-erlang-$erlang_version"

Expand Down

0 comments on commit 496f6f3

Please sign in to comment.