Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
Set container default build to SIM and rm on exit
Browse files Browse the repository at this point in the history
Set the SGX_MODE to simulation by default inside the dev container. Also
set containers to be removed after running.

Signed-off-by: Dan Middleton <[email protected]>
  • Loading branch information
dcmiddle committed Mar 30, 2020
1 parent 59db00d commit 76f6c50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/dev-env
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ ENV SGX_SDK=/opt/intel/sgxsdk
ENV PATH=$PATH:$SGX_SDK/bin:$SGX_SDK/bin/x64
ENV PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$SGX_SDK/pkgconfig
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:$SGX_SDK/sdk_libs
ENV SGX_MODE=SIM
1 change: 1 addition & 0 deletions run-docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Copyright contributors to Hyperledger Avalon
# SPDX-License-Identifier: Apache-2.0
docker run \
--rm \
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
-v $(pwd):/project/dancap\
-it dancap-dev-env /bin/bash \
Expand Down
1 change: 1 addition & 0 deletions run-docker-verifier
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Copyright contributors to Hyperledger Avalon
# SPDX-License-Identifier: Apache-2.0
docker run \
--rm \
-e http_proxy \
-e https_proxy \
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
Expand Down

0 comments on commit 76f6c50

Please sign in to comment.