Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
maceip authored Oct 7, 2024
1 parent d6e83e4 commit 8a42fb7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions crates/notary/server/fixture/tee/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#tlsnotary server for testing <> gramine sgx
### notaryserverbuilds.azurecr.io/prod/sgx-notary
#tlsnotary server for testing <> gramine sgx (gramine1.7, g++13, libiomp off :()
### notaryserverbuilds.azurecr.io/prod/notary-sgx

FROM notaryserverbuilds.azurecr.io/prod/gramine-deps AS teesdk
FROM notaryserverbuilds.azurecr.io/prod/gramine AS teesdk

ARG TOOLCHAIN=1.81.0
ENV PATH=/root/.cargo/bin:/usr/local/musl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ARG TOOLCHAIN=1.81.0
ENV PATH=/root/.cargo/bin:/usr/local/musl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

RUN set -eux \
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=$TOOLCHAIN \
&& rustup target add \
x86_64-unknown-linux-gnu
RUN set -eux \
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=$TOOLCHAIN \
&& rustup target add \
x86_64-unknown-linux-gnu


RUN apt update && apt install -y libssl-dev libclang-dev
ARG TLSN_TAG=quote-presentation
ARG TLSN_FT=tee_quote
RUN git clone --depth 1 -b $TLSN_TAG https://github.com/tlsnotary/tlsn /tlsn && \
cargo build --release --bin notary-server --features $TLSN_FT --color always --manifest-path /tlsn/Cargo.toml
RUN cd tlsn/crates/notary/server/fixture/tee && gramine-sgx-gen-private-key && SGX=1 make
RUN cd tlsn/crates/notary/server/fixture/tee && gramine-sgx-gen-private-key && SGX=1 make

FROM notaryserverbuilds.azurecr.io/builder/gramine AS teetime
FROM notaryserverbuilds.azurecr.io/prod/gramine AS teetime
COPY --from=teesdk tlsn/crates/notary/server/fixture/tee tee
RUN mkdir /tee/config && cp /tee/config.yaml /tee/config/
ENTRYPOINT ["gramine-sgx", "/tee/notary-server"]

0 comments on commit 8a42fb7

Please sign in to comment.