Skip to content

Commit

Permalink
update generic files
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Jul 3, 2024
1 parent d41ef8b commit e525e31
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions integration/linux/build/Dockerfile-linux.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ ENV NODE_VERSION %%PLACEHOLDER%%
ENV YARN_VERSION %%PLACEHOLDER%%
ENV GCC_VERSION 11

RUN (echo precedence ::ffff:0:0/96 100 >> /etc/gai.conf \
&& source /etc/os-release; \
[ "$VERSION" = "7" || "$VERSION" = "8" ] && (cd /etc/yum.repos.d/ \
&& sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* \
&& sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* \
&& yum update -y) || true)

# rpm on centos 7 iterates over all fds up to the limit, which is
# extremely slow. Force it to be small.
RUN ulimit -n 1024 \
Expand Down
7 changes: 7 additions & 0 deletions integration/linux/build/linux-aarch64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ ENV NODE_VERSION 16.16.0
ENV YARN_VERSION 1.22.19
ENV GCC_VERSION 10

RUN (echo precedence ::ffff:0:0/96 100 >> /etc/gai.conf \
&& source /etc/os-release; \
[ "$VERSION" = "7" || "$VERSION" = "8" ] && (cd /etc/yum.repos.d/ \
&& sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* \
&& sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* \
&& yum update -y) || true)

# rpm on centos 7 iterates over all fds up to the limit, which is
# extremely slow. Force it to be small.
RUN ulimit -n 1024 \
Expand Down
7 changes: 7 additions & 0 deletions integration/linux/build/linux-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ ENV NODE_VERSION 16.16.0
ENV YARN_VERSION 1.22.19
ENV GCC_VERSION 11

RUN (echo precedence ::ffff:0:0/96 100 >> /etc/gai.conf \
&& source /etc/os-release; \
[ "$VERSION" = "7" || "$VERSION" = "8" ] && (cd /etc/yum.repos.d/ \
&& sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* \
&& sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* \
&& yum update -y) || true)

# rpm on centos 7 iterates over all fds up to the limit, which is
# extremely slow. Force it to be small.
RUN ulimit -n 1024 \
Expand Down

0 comments on commit e525e31

Please sign in to comment.