-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install protoc binary for cross on centos7
- Loading branch information
1 parent
4be679e
commit 14241de
Showing
2 changed files
with
17 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[target.x86_64-unknown-linux-gnu] | ||
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos" | ||
dockerfile = "./tools/docker/Dockerfile.centos" |
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,16 @@ | ||
FROM ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos | ||
|
||
# CentOS 7 is EOL | ||
# Find and replace mirror.centos.org with vault.centos.org | ||
# Remove the # sign at the beginning of lines containing baseurl=http to enable baseurl usage instead of disabling it | ||
# Add a # sign to the beginning of lines containing mirrorlist=http to disable the use of mirrorlist | ||
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo \ | ||
&& sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo \ | ||
&& sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo | ||
|
||
RUN yum update -y \ | ||
&& yum install -y unzip \ | ||
&& yum install -y which | ||
|
||
COPY ./scripts/install-protoc.sh . | ||
RUN chmod +x ./install-protoc.sh && ./install-protoc.sh |