Skip to content

Commit

Permalink
Add docker files to the enclave - HW mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ssantos21 committed Apr 18, 2024
1 parent 9db6062 commit dfb55fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions clients/rust/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.76.0"
8 changes: 4 additions & 4 deletions enclave/Dockerfiles/HW/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apt-get update

FROM sgxbase as sgx_sample_builder
# App build time dependencies
RUN apt-get install -y build-essential libpq-dev clang git cmake
RUN apt-get install -y build-essential libpq-dev clang git cmake libcurl4-openssl-dev autoconf libtool libboost-dev libboost-system-dev libboost-thread-dev

WORKDIR /opt/intel
RUN wget https://download.01.org/intel-sgx/sgx-linux/2.23/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.23.100.2.bin
Expand Down Expand Up @@ -67,10 +67,10 @@ RUN apt-get install -y \

# No AESM daemon, only AESM client side API support for launch.
# For applications requiring attestation, add libsgx-quote-ex
RUN apt-get install -y --no-install-recommends libsgx-launch libsgx-urts
RUN apt-get install -y --no-install-recommends libsgx-launch libsgx-urts curl

COPY --from=sgx_sample_builder /lockbox-sgx/app lockbox-sgx-app
COPY --from=sgx_sample_builder /lockbox-sgx/enclave.signed.so .
COPY --from=sgx_sample_builder /home/lockbox-sgx/app lockbox-sgx-app
COPY --from=sgx_sample_builder /home/lockbox-sgx/enclave.signed.so .

RUN adduser -q --disabled-password --gecos "" --no-create-home sgxuser
USER sgxuser
Expand Down
2 changes: 2 additions & 0 deletions server/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.76.0"

0 comments on commit dfb55fd

Please sign in to comment.