Skip to content

Commit

Permalink
Revert elixir dockerfile, because I'm not going through with fixing i…
Browse files Browse the repository at this point in the history
…t. Fix gem versions that are missing. Fix RPM source for install stage
  • Loading branch information
nathanmonteleone committed Oct 23, 2024
1 parent 581ba2a commit 1731a78
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sifi_erl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
GPG_PASS: ${{ secrets.GPG_PASS }}
run: |
echo "Building ..."
echo "Distro latest ${{ matrix.cfg.DISTRO }} ${{ matrix.cfg.OS_VERSION }}"
echo "Distro ${{ matrix.cfg.DISTRO }} ${{ matrix.cfg.OS_VERSION }}"
echo "Platform ${{ matrix.cfg.PLATFORM }}"
echo "${{secrets.GPG_P_KEY}}" | tr ';' '\n' > GPG-KEY-pmanager
make "erlang_${{ env.ERLANG_VERSION }}_${{matrix.cfg.DISTRO}}_${{matrix.cfg.OS_VERSION}}_${{matrix.cfg.PLATFORM}}"
Expand Down
9 changes: 0 additions & 9 deletions builders/elixir_centos.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ ARG os
ARG os_version
ADD yumdnf /usr/local/bin/

# Fix centos 7 mirrors
RUN --mount=type=cache,id=${os}_${os_version},target=/var/cache/dnf,sharing=private \
--mount=type=cache,id=${os}_${os_version},target=/var/cache/yum,sharing=private \
if [ "${os}:${os_version}" = "centos:7" ]; then \
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo \
&& sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo \
&& sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo; \
fi

# Fix centos 8 mirrors
RUN --mount=type=cache,id=${os}_${os_version},target=/var/cache/dnf,sharing=private \
--mount=type=cache,id=${os}_${os_version},target=/var/cache/yum,sharing=private \
Expand Down
14 changes: 12 additions & 2 deletions builders/erlang_centos.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ RUN --mount=type=cache,id=${os}_${os_version},target=/var/cache/dnf,sharing=priv
# fpm 1.12 requires ruby 2.3.8
rbenv install 2.3.8; \
rbenv global 2.3.8; \
gem install bundler -v '~>2'; \
gem install bundler -v '< 2.3'; \
gem install git --no-document --version 1.7.0; \
gem install dotenv --version 2.8.1; \
gem install fpm --no-document --version 1.12.0; \
else \
# fpm 1.13 requires ruby 3.0.1.
Expand Down Expand Up @@ -189,7 +190,16 @@ WORKDIR /tmp/output
COPY --from=builder /tmp/output .
ADD yumdnf /usr/local/bin/

# Fix centos 8 mirrors
# Fix centos 7 mirrors
RUN --mount=type=cache,id=${os}_${os_version},target=/var/cache/dnf,sharing=private \
--mount=type=cache,id=${os}_${os_version},target=/var/cache/yum,sharing=private \
if [ "${os}:${os_version}" = "centos:7" ]; then \
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo \
&& sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo \
&& sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo; \
fi

# Fix centos 8 mirrors
RUN --mount=type=cache,id=${os}_${os_version},target=/var/cache/dnf,sharing=private \
--mount=type=cache,id=${os}_${os_version},target=/var/cache/yum,sharing=private \
if [ "${os}:${os_version}" = "centos:8" ]; then \
Expand Down

0 comments on commit 1731a78

Please sign in to comment.