diff --git a/el9/Dockerfile b/el9/Dockerfile index 9d4fa17..6028b39 100644 --- a/el9/Dockerfile +++ b/el9/Dockerfile @@ -10,7 +10,6 @@ RUN dnf -y install \ perl-FindBin \ python3-pip \ procps-ng \ - protobuf-compiler \ systemd \ vim \ wget \ @@ -31,6 +30,10 @@ RUN dnf -y install \ RUN ln -s /usr/bin/python3 /usr/bin/python +COPY el9/get-protoc.sh /get-protoc.sh + +RUN /get-protoc.sh + WORKDIR / COPY get-cmake.sh /get-cmake.sh diff --git a/el9/get-protoc.sh b/el9/get-protoc.sh new file mode 100755 index 0000000..4181b80 --- /dev/null +++ b/el9/get-protoc.sh @@ -0,0 +1,20 @@ +#!/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" +unzip "protoc-$VSN-linux-$ARCH.zip" -d /usr/local/bin