From 79b3d9a0a3e9b8e784d2ebb0d3e05ad968d3ff92 Mon Sep 17 00:00:00 2001 From: Nick Santana Date: Fri, 16 Feb 2024 09:04:30 -0800 Subject: [PATCH] Update proto compiler --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 321721d..e73eaa6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ SHELL ["/bin/bash", "-c"] # # Build Requirements: # libclang-dev, libprotobuf-dev, libpq-dev, libssl1.1, -# libssl-dev, llvm, llvm-dev, pkg-config, protobuf-compiler +# libssl-dev, llvm, llvm-dev, pkg-config # # Needed for GHA cache actions: # zstd @@ -38,12 +38,19 @@ RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime \ llvm \ llvm-dev \ pkg-config \ - protobuf-compiler \ + unzip \ wget \ zstd \ && apt-get clean \ && rm -r /var/lib/apt/lists +# Install a newer version of the protobuf compiler, that's not available in apt +RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-linux-x86_64.zip \ + && unzip protoc-25.2-linux-x86_64.zip -d protoc \ + && cp protoc/bin/protoc /usr/bin/protoc \ + && cp -r protoc/include/google /usr/include/google \ + && rm -rf protoc + # Install SGX ARG SGX_URL=https://download.01.org/intel-sgx/sgx-linux/2.22/distro/ubuntu20.04-server/sgx_linux_x64_sdk_2.22.100.3.bin RUN curl -o sgx.bin "${SGX_URL}" \