Skip to content
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
4 changes: 4 additions & 0 deletions el7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ RUN yum groupinstall -y "Development Tools" && \

ADD install-openssl11.sh get-git.sh get-automake.sh get-cmake.sh /

COPY el9/get-protoc.sh /get-protoc.sh

RUN /get-protoc.sh

WORKDIR /

# We need git >= 2.18 otherwise actions/checkout@v3 in github
Expand Down
21 changes: 21 additions & 0 deletions el7/get-protoc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

set -euo pipefail

cd /tmp

PB_REL="https://github.com/protocolbuffers/protobuf/releases"
VSN="33.1"

case $(uname -m) in
x86_64)
ARCH="x86_64"
;;
*)
ARCH="aarch_64"
;;
esac

curl -LO "$PB_REL/download/v$VSN/protoc-$VSN-linux-$ARCH.zip"
# zip contains `bin/protoc`
unzip "protoc-$VSN-linux-$ARCH.zip" -d /usr/local/
3 changes: 2 additions & 1 deletion el9/get-protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ case $(uname -m) in
esac

curl -LO "$PB_REL/download/v$VSN/protoc-$VSN-linux-$ARCH.zip"
unzip "protoc-$VSN-linux-$ARCH.zip" -d /usr/local/bin
# zip contains `bin/protoc`
unzip "protoc-$VSN-linux-$ARCH.zip" -d /usr/local/