Skip to content

Commit 419265f

Browse files
authored
PMM-7 install yum prior to installing NodeJS (#2862)
* PMM-7 install yum prior to installing NodeJS This patch fixes the problem where NodeJS install script requires either `dnf` or `yum` as a package manager. If those can't be found, the script fails. It seems like the behavior must have changed in the recent versions of the script. * PMM-7 reploace wget with curl * PMM-7 replace wget with curl * PMM-7 revert NodeJS to v16 * PMM-7 trigger the build
1 parent 44c7803 commit 419265f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/docker/rpmbuild/Dockerfile.el9

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM oraclelinux:9-slim
22

3+
RUN microdnf install -y yum
34
# enable nodesource repo for nodejs
45
RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash -
56
RUN curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo
6-
RUN microdnf install -y yum
77

88
RUN yum update -y && \
99
yum install -y --setopt=skip_missing_names_on_install=False \
@@ -29,8 +29,8 @@ ENV GO_VERSION 1.22.0
2929
ENV GO_RELEASER_VERSION 1.24.0
3030

3131
RUN if [ `uname -i` == "x86_64" ]; then ARCH=amd64; else ARCH=arm64; fi && \
32-
wget --progress=dot:giga https://dl.google.com/go/go${GO_VERSION}.linux-${ARCH}.tar.gz -O /tmp/golang.tar.gz && \
33-
wget --progress=dot:giga https://github.com/goreleaser/goreleaser/releases/download/v${GO_RELEASER_VERSION}/goreleaser-${GO_RELEASER_VERSION}-1.`uname -i`.rpm -O /tmp/goreleaser.rpm && \
32+
curl -fSsL -o /tmp/golang.tar.gz https://dl.google.com/go/go${GO_VERSION}.linux-${ARCH}.tar.gz && \
33+
curl -fSsL -o /tmp/goreleaser.rpm https://github.com/goreleaser/goreleaser/releases/download/v${GO_RELEASER_VERSION}/goreleaser-${GO_RELEASER_VERSION}-1.`uname -i`.rpm && \
3434
tar -C /usr/local -xzf /tmp/golang.tar.gz && \
3535
yum install -y /tmp/goreleaser.rpm && \
3636
rm /tmp/golang.tar.gz /tmp/goreleaser.rpm

0 commit comments

Comments
 (0)