From d1646430d292819e6def3afba8bf0e98783530d9 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi <16166434+thalesmg@users.noreply.github.com> Date: Wed, 17 Dec 2025 10:43:24 -0300 Subject: [PATCH 1/2] fix(el9): extract protoc into correct directory --- el9/get-protoc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/el9/get-protoc.sh b/el9/get-protoc.sh index 4181b80..ad7fe25 100755 --- a/el9/get-protoc.sh +++ b/el9/get-protoc.sh @@ -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/ From c534fd97efefe354cb808159078d93f1350c2d93 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi <16166434+thalesmg@users.noreply.github.com> Date: Wed, 17 Dec 2025 10:49:07 -0300 Subject: [PATCH 2/2] chore(el7): add script to get protobuf compiler --- el7/Dockerfile | 4 ++++ el7/get-protoc.sh | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 el7/get-protoc.sh diff --git a/el7/Dockerfile b/el7/Dockerfile index d5922ba..196ceba 100644 --- a/el7/Dockerfile +++ b/el7/Dockerfile @@ -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 diff --git a/el7/get-protoc.sh b/el7/get-protoc.sh new file mode 100755 index 0000000..ad7fe25 --- /dev/null +++ b/el7/get-protoc.sh @@ -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/