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
5 changes: 4 additions & 1 deletion el9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ RUN dnf -y install \
perl-FindBin \
python3-pip \
procps-ng \
protobuf-compiler \
systemd \
vim \
wget \
Expand All @@ -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
Expand Down
20 changes: 20 additions & 0 deletions el9/get-protoc.sh
Original file line number Diff line number Diff line change
@@ -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