-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add aarch64 base for layer build (#40)
* add aarch64 base for layer build * ..
- Loading branch information
Showing
4 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Dockerfile used for building mirrord-layer for aarch64 with very old libc | ||
# this to support centos7 or Amazon Linux 2. | ||
|
||
FROM ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main-centos | ||
|
||
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo && \ | ||
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo && \ | ||
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo | ||
|
||
|
||
RUN yum update -y && \ | ||
yum install centos-release-scl -y | ||
|
||
# centos-release-scl adds another repo so need to patch again | ||
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo && \ | ||
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo && \ | ||
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo | ||
|
||
|
||
RUN yum update -y && \ | ||
yum install llvm-toolset-7 -y | ||
|
||
ENV LIBCLANG_PATH=/opt/rh/llvm-toolset-7/root/usr/lib64/ \ | ||
LIBCLANG_STATIC_PATH=/opt/rh/llvm-toolset-7/root/usr/lib64/ \ | ||
CLANG_PATH=/opt/rh/llvm-toolset-7/root/usr/bin/clang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Dockerfile used for building mirrord-layer for x64 with very old libc | ||
# this to support centos7 or Amazon Linux 2. | ||
|
||
FROM ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos | ||
|
||
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo && \ | ||
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo && \ | ||
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo | ||
|
||
|
||
RUN yum update -y && \ | ||
yum install centos-release-scl -y | ||
|
||
# centos-release-scl adds another repo so need to patch again | ||
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo && \ | ||
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo && \ | ||
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo | ||
|
||
RUN yum update -y && \ | ||
yum install llvm-toolset-7 -y | ||
|
||
ENV LIBCLANG_PATH=/opt/rh/llvm-toolset-7/root/usr/lib64/ \ | ||
LIBCLANG_STATIC_PATH=/opt/rh/llvm-toolset-7/root/usr/lib64/ \ | ||
CLANG_PATH=/opt/rh/llvm-toolset-7/root/usr/bin/clang |