From dfb55fdb95c91ef0708a2dfdb58acbe47710f67e Mon Sep 17 00:00:00 2001 From: "S. Santos" Date: Thu, 18 Apr 2024 03:13:19 -0300 Subject: [PATCH] Add docker files to the enclave - HW mode --- clients/rust/rust-toolchain.toml | 2 ++ enclave/Dockerfiles/HW/Dockerfile | 8 ++++---- server/rust-toolchain.toml | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 clients/rust/rust-toolchain.toml create mode 100644 server/rust-toolchain.toml diff --git a/clients/rust/rust-toolchain.toml b/clients/rust/rust-toolchain.toml new file mode 100644 index 00000000..1a4239ae --- /dev/null +++ b/clients/rust/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.76.0" \ No newline at end of file diff --git a/enclave/Dockerfiles/HW/Dockerfile b/enclave/Dockerfiles/HW/Dockerfile index d3608dc8..2b580fdc 100644 --- a/enclave/Dockerfiles/HW/Dockerfile +++ b/enclave/Dockerfiles/HW/Dockerfile @@ -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 @@ -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 diff --git a/server/rust-toolchain.toml b/server/rust-toolchain.toml new file mode 100644 index 00000000..1a4239ae --- /dev/null +++ b/server/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.76.0" \ No newline at end of file