Skip to content

Commit 162c7fe

Browse files
authored
chore(x86_64 platform): Build packages with an older glibc to reenable centos7 and others. (#15695)
enhancement(x86_64 platform): Build packages with an older glibc to reenable centos7 and others. Fixes #13183
1 parent b9626dd commit 162c7fe

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎scripts/cross/bootstrap-centos.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
set -o errexit
3+
4+
yum install -y unzip centos-release-scl
5+
yum install -y llvm-toolset-7

‎scripts/cross/entrypoint-centos.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
# shellcheck source=/dev/null
3+
source scl_source enable llvm-toolset-7
4+
exec "$@"
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.4
1+
FROM ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.4-centos
22

3-
COPY scripts/cross/bootstrap-ubuntu.sh scripts/environment/install-protoc.sh /
4-
RUN /bootstrap-ubuntu.sh && bash /install-protoc.sh
3+
COPY scripts/cross/bootstrap-centos.sh scripts/cross/entrypoint-centos.sh scripts/environment/install-protoc.sh /
4+
RUN /bootstrap-centos.sh && bash /install-protoc.sh
5+
6+
ENTRYPOINT [ "/entrypoint-centos.sh" ]

0 commit comments

Comments
 (0)