File tree Expand file tree Collapse file tree 2 files changed +26
-8
lines changed
centos7-devtoolset8-arm64 Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,23 @@ ARG INSTALL_PKGS="devtoolset-8-gcc \
12
12
krb5-devel \
13
13
python3"
14
14
15
- RUN yum install -y centos-release-scl-rh && \
15
+ # Fix CentOS 7 EOL repo issue
16
+ RUN cd /etc/yum.repos.d/ && \
17
+ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
18
+ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* && \
19
+ yum install -y centos-release-scl-rh && \
20
+ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-SCLo-* && \
21
+ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-SCLo-* && \
16
22
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
17
23
rpm -V $INSTALL_PKGS && \
18
24
yum -y clean all --enablerepo='*'
19
25
20
- # install nodejs
21
- RUN yum install https://rpm.nodesource.com/pub_16.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y
22
- RUN yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
26
+ # install nodejs and npm
27
+ RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash - && \
28
+ yum install -y nodejs
29
+
30
+ # update npm and install yarn
31
+ RUN npm install -g
"[email protected] "
23
32
RUN npm install -g yarn
24
33
RUN npm install -g node-gyp
25
34
Original file line number Diff line number Diff line change @@ -14,14 +14,23 @@ ARG INSTALL_PKGS="devtoolset-8-gcc \
14
14
krb5-devel \
15
15
python3"
16
16
17
- RUN yum install -y centos-release-scl-rh && \
17
+ # Fix CentOS 7 EOL repo issue
18
+ RUN cd /etc/yum.repos.d/ && \
19
+ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
20
+ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* && \
21
+ yum install -y centos-release-scl-rh && \
22
+ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-SCLo-* && \
23
+ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-SCLo-* && \
18
24
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
19
25
rpm -V $INSTALL_PKGS && \
20
26
yum -y clean all --enablerepo='*'
21
27
22
- # install nodejs
23
- RUN yum install https://rpm.nodesource.com/pub_16.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y
24
- RUN yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
28
+ # install nodejs and npm
29
+ RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash - && \
30
+ yum install -y nodejs
31
+
32
+ # update npm and install yarn
33
+ RUN npm install -g
"[email protected] "
25
34
RUN npm install -g yarn
26
35
RUN npm install -g node-gyp
27
36
You can’t perform that action at this time.
0 commit comments