Skip to content

Commit

Permalink
Merge pull request #4 from mobilecoinofficial/add-zstd
Browse files Browse the repository at this point in the history
add zstd and nightly 2022-01-10
  • Loading branch information
jgreat authored Apr 5, 2022
2 parents 9e67c43 + db3ed8b commit 9d7766b
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FROM ubuntu:focal-20220113

# Utilities:
# build-essential, cmake, curl, git, jq
#
# Build Requirements:
# libclang-dev, libprotobuf-dev, libpq-dev, libssl1.1,
# libssl-dev, llvm, llvm-dev, pkg-config, protobuf-compiler
#
# Needed for GHA cache actions:
# zstd
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime\
&& apt-get update \
&& apt-get upgrade -y \
Expand All @@ -19,6 +28,7 @@ RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime\
llvm-dev \
pkg-config \
protobuf-compiler \
zstd \
&& apt-get clean \
&& rm -r /var/lib/apt/lists

Expand All @@ -31,6 +41,11 @@ RUN curl -o sgx.bin "${SGX_URL}" \
&& ./sgx.bin --prefix=/opt/intel \
&& rm ./sgx.bin

ENV SGX_SDK=/opt/intel/sgxsdk
ENV PATH=/opt/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/intel/sgxsdk/bin:/opt/intel/sgxsdk/bin/x64
ENV PKG_CONFIG_PATH=/opt/intel/sgxsdk/pkgconfig
ENV LD_LIBRARY_PATH=/opt/intel/sgxsdk/sdk_libs

# Github actions overwrites the runtime home directory, so we need to install in a global directory.
ENV RUSTUP_HOME=/opt/rustup
ENV CARGO_HOME=/opt/cargo
Expand All @@ -39,8 +54,4 @@ RUN mkdir -p ${RUSTUP_HOME} \

# Install rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2021-07-21

ENV SGX_SDK=/opt/intel/sgxsdk
ENV PATH=/opt/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/intel/sgxsdk/bin:/opt/intel/sgxsdk/bin/x64
ENV PKG_CONFIG_PATH=/opt/intel/sgxsdk/pkgconfig
ENV LD_LIBRARY_PATH=/opt/intel/sgxsdk/sdk_libs
RUN rustup toolchain install nightly-2022-01-10

0 comments on commit 9d7766b

Please sign in to comment.