Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Linux artifacts using CentOS 7 (1.31.x backport) (#7882)
CentOS 6 is dead and no longer has update servers. CentOS 7 is older than Debian 9 (oldstable), so binaries hopefully work on both. More testing is necessary, but everything's broken now, so this is better than nothing. We stop using protoc-artifacts because now the container is straight-forward enough that we can just use our own. Previously the "devtoolset" stuff made us want to share the container. Co-authored-by: Eric Anderson <ejona@google.com>
- Loading branch information
Showing
5 changed files
with
30 additions
and
8 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 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,8 +1,5 @@ | ||
#!/bin/bash | ||
set -eu -o pipefail | ||
|
||
readonly proto_dir="$(mktemp -d --tmpdir protobuf.XXXXXX)" | ||
wget -O - https://github.com/google/protobuf/archive/v3.12.0.tar.gz | tar xz -C "$proto_dir" | ||
|
||
docker build -t protoc-artifacts "$proto_dir"/protobuf-3.12.0/protoc-artifacts | ||
rm -r "$proto_dir" | ||
readonly buildscripts_dir="$(dirname "$(readlink -f "$0")")" | ||
docker build -t grpc-java-artifacts "$buildscripts_dir"/grpc-java-artifacts |
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 @@ | ||
FROM centos:7.9.2009 | ||
|
||
RUN yum install -y \ | ||
glibc-devel \ | ||
glibc-devel.i686 \ | ||
libstdc++-static \ | ||
libstdc++-static.i686 \ | ||
autoconf \ | ||
automake \ | ||
gcc-c++ \ | ||
gcc-c++.i686 \ | ||
java-1.8.0-openjdk-devel \ | ||
libstdc++-devel \ | ||
libstdc++-devel.i686 \ | ||
libtool \ | ||
make \ | ||
tar \ | ||
which \ | ||
&& \ | ||
yum clean all | ||
|
||
# Install Maven | ||
RUN curl -Ls http://apache.cs.utah.edu/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | \ | ||
tar xz -C /var/local | ||
ENV PATH /var/local/apache-maven-3.3.9/bin:$PATH |
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 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