File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
centos7-devtoolset8-arm64 Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,21 @@ 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
28
+ # install nodejs and npm
29
+ RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash - && \
30
+ yum install -y nodejs
31
+
22
32
# update npm and install yarn
23
33
RUN npm install -g
"[email protected] "
24
34
RUN npm install -g yarn
Original file line number Diff line number Diff line change @@ -14,11 +14,21 @@ 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
28
+ # install nodejs and npm
29
+ RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash - && \
30
+ yum install -y nodejs
31
+
22
32
# update npm and install yarn
23
33
RUN npm install -g
"[email protected] "
24
34
RUN npm install -g yarn
You can’t perform that action at this time.
0 commit comments