Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually fix it? #93

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration/linux/build/Dockerfile-centos.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"

RUN (echo precedence ::ffff:0:0/96 100 >> /etc/gai.conf \
&& source /etc/os-release; \
[ "$VERSION" = "7" -o "$VERSION" = "8" ] && (cd /etc/yum.repos.d/ \
[ "$VERSION" = "7 (Core)" -o "$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)
Expand Down
24 changes: 17 additions & 7 deletions integration/linux/build/Dockerfile-linux.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,27 @@ 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" -o "$VERSION" = "8" ] && (cd /etc/yum.repos.d/ \
# rpm on centos 7 iterates over all fds up to the limit, which is
# extremely slow. Force it to be small with ulimit.
#
# We need to disable the mirrorlist both at the start *and* after
# installing centos-release-scl, which adds new things. Ugh.
RUN ulimit -n 1024 && echo precedence ::ffff:0:0/96 100 >> /etc/gai.conf && ( \
source /etc/os-release; \
[ "$VERSION" = "7 (Core)" -o "$VERSION" = "8" ] && echo YES && (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-* \
&& 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 \
&& yum install -y centos-release-scl epel-release \
&& yum install -y centos-release-scl epel-release \
&& ( \
source /etc/os-release; \
[ "$VERSION" = "7 (Core)" -o "$VERSION" = "8" ] && echo YES && (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) \
\
&& yum install -y \
devtoolset-${GCC_VERSION} make patch flex bison \
wget zlib-devel openssl-devel sqlite-devel bzip2 bzip2-devel \
Expand Down
2 changes: 1 addition & 1 deletion integration/linux/build/centos-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"

RUN (echo precedence ::ffff:0:0/96 100 >> /etc/gai.conf \
&& source /etc/os-release; \
[ "$VERSION" = "7" -o "$VERSION" = "8" ] && (cd /etc/yum.repos.d/ \
[ "$VERSION" = "7 (Core)" -o "$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)
Expand Down
2 changes: 1 addition & 1 deletion integration/linux/build/centos-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"

RUN (echo precedence ::ffff:0:0/96 100 >> /etc/gai.conf \
&& source /etc/os-release; \
[ "$VERSION" = "7" -o "$VERSION" = "8" ] && (cd /etc/yum.repos.d/ \
[ "$VERSION" = "7 (Core)" -o "$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)
Expand Down
24 changes: 17 additions & 7 deletions integration/linux/build/linux-aarch64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,27 @@ 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" -o "$VERSION" = "8" ] && (cd /etc/yum.repos.d/ \
# rpm on centos 7 iterates over all fds up to the limit, which is
# extremely slow. Force it to be small with ulimit.
#
# We need to disable the mirrorlist both at the start *and* after
# installing centos-release-scl, which adds new things. Ugh.
RUN ulimit -n 1024 && echo precedence ::ffff:0:0/96 100 >> /etc/gai.conf && ( \
source /etc/os-release; \
[ "$VERSION" = "7 (Core)" -o "$VERSION" = "8" ] && echo YES && (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-* \
&& 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 \
&& yum install -y centos-release-scl epel-release \
&& yum install -y centos-release-scl epel-release \
&& ( \
source /etc/os-release; \
[ "$VERSION" = "7 (Core)" -o "$VERSION" = "8" ] && echo YES && (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) \
\
&& yum install -y \
devtoolset-${GCC_VERSION} make patch flex bison \
wget zlib-devel openssl-devel sqlite-devel bzip2 bzip2-devel \
Expand Down
24 changes: 17 additions & 7 deletions integration/linux/build/linux-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,27 @@ 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" -o "$VERSION" = "8" ] && (cd /etc/yum.repos.d/ \
# rpm on centos 7 iterates over all fds up to the limit, which is
# extremely slow. Force it to be small with ulimit.
#
# We need to disable the mirrorlist both at the start *and* after
# installing centos-release-scl, which adds new things. Ugh.
RUN ulimit -n 1024 && echo precedence ::ffff:0:0/96 100 >> /etc/gai.conf && ( \
source /etc/os-release; \
[ "$VERSION" = "7 (Core)" -o "$VERSION" = "8" ] && echo YES && (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-* \
&& 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 \
&& yum install -y centos-release-scl epel-release \
&& yum install -y centos-release-scl epel-release \
&& ( \
source /etc/os-release; \
[ "$VERSION" = "7 (Core)" -o "$VERSION" = "8" ] && echo YES && (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) \
\
&& yum install -y \
devtoolset-${GCC_VERSION} make patch flex bison \
wget zlib-devel openssl-devel sqlite-devel bzip2 bzip2-devel \
Expand Down
Loading