Skip to content

Commit

Permalink
Merge pull request #40 from mobilecoinofficial/nick/update-protoc
Browse files Browse the repository at this point in the history
Update proto compiler
  • Loading branch information
nick-mobilecoin authored Feb 16, 2024
2 parents cc705d2 + 79b3d9a commit 55f4974
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}" \
Expand Down

0 comments on commit 55f4974

Please sign in to comment.