Skip to content

Commit

Permalink
update localsecret dockerfile to use ubuntu22.04 as base image
Browse files Browse the repository at this point in the history
  • Loading branch information
cboh4 committed Oct 2, 2024
1 parent f344263 commit 5e93699
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions cosmwasm/enclaves/shared/crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ git = "https://github.com/mesalock-linux/rustls"
rev = "95b5e79dc24b02f3ce424437eb9698509d0baf58"
default-features = false
features = ["dangerous_configuration", "mesalock_sgx"]

[net]
git-fetch-with-cli = true
8 changes: 4 additions & 4 deletions deployment/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
# `--target build-deb-mainnet` - the image used to generate deb package for mainnet (will pull precompiled enclave)
# `--target compile-secretd` - image with compiled enclave and secretd

ARG SCRT_BASE_IMAGE_ENCLAVE=ghcr.io/scrtlabs/sgx-rust:2004-1.1.6
ARG SCRT_RELEASE_BASE_IMAGE=ghcr.io/scrtlabs/release-base:20.04-2.20-dcap
ARG SCRT_BASE_IMAGE_ENCLAVE=ghcr.io/scrtlabs/sgx-rust:2204-1.1.6
ARG SCRT_RELEASE_BASE_IMAGE=ghcr.io/scrtlabs/release-base:22.04-2.20-dcap

# ***************** PREPARE COMPILE ENCLAVE ************** #

FROM $SCRT_BASE_IMAGE_ENCLAVE AS prepare-compile-enclave

RUN apt-get update && \
apt-get install -y --no-install-recommends \
clang-10 && \
clang-12 && \
rm -rf /var/lib/apt/lists/*

ENV PATH="/root/.cargo/bin:$PATH"
Expand Down Expand Up @@ -155,7 +155,7 @@ RUN . /opt/sgxsdk/environment && env && VERSION=${VERSION} FEATURES=${FEATURES}
FROM $SCRT_RELEASE_BASE_IMAGE as release-image

# wasmi-sgx-test script requirements
RUN add-apt-repository -r "deb https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main" && \
RUN add-apt-repository -r "deb https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main" && \
apt-get update && \
apt-get install -y --no-install-recommends \
#### Base utilities ####
Expand Down

0 comments on commit 5e93699

Please sign in to comment.