Skip to content

Commit

Permalink
fix path on exec scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyTimes committed Jan 5, 2022
1 parent 658fbe9 commit c26d3de
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 58 deletions.
25 changes: 0 additions & 25 deletions .devcontainer/devcontainer.json

This file was deleted.

10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ node_modules/
/host/mock/*.contract
/host/mock/*.wasm
/host/mock/*.json

enclave/lib/*.a
enclave/bin/app
enclave/bin/enclave.signed.so
enclave/enclave/enclave.so

**/*.c
**/*.a
**/*.h
**/*.o
13 changes: 13 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,18 @@ members = [
'skw-pallets/s-contract',
'skw-runtime',
]

exclude = [
'enclave/app',
'enclave/enclave',
'enclave/crates/skw-crypto',
'enclave/crates/skw-driver',
'enclave/crates/skw-file',
'enclave/crates/skw-ipfs',
'enclave/crates/skw-metadata',
'enclave/crates/skw-types',
'enclave/crates/skw-unit-test',
'enclave/crates/skw-utils',
]
[profile.release]
panic = 'unwind'
6 changes: 2 additions & 4 deletions enclave/app/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions enclave/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ authors = ["SkyeKiwi <[email protected]>"]
build = "build.rs"

[dependencies]
sgx_types = { git = "https://github.com/apache/teaclave-sgx-sdk.git" }
sgx_urts = { git = "https://github.com/apache/teaclave-sgx-sdk.git" }
sgx_types = { path = "../../teaclave-sgx-sdk/sgx_types" }
sgx_urts = { path = "../../teaclave-sgx-sdk/sgx_urts" }
42 changes: 21 additions & 21 deletions enclave/enclave/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified mock-enclave/wasm/greeting.wasm
Binary file not shown.
5 changes: 1 addition & 4 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
[toolchain]
channel = "nightly-2021-11-11"
components = ["rustfmt"]
targets = ["wasm32-unknown-unknown"]
nightly-2021-11-11
4 changes: 2 additions & 2 deletions scripts/enclave-sim.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ console.log('$ yarn enclave:sim', process.argv.slice(2).join(' '));

function runInDocker() {

const pathName = path.join(__dirname, "./enclave");
execSync(`sudo docker run -v ${pathName}:/root/sgx -it baiduxlab/sgx-rust bash -c "cd /root/sgx && export SGX_MODE=SW && bash"`);
const pathName = path.join(__dirname, "..");
execSync(`sudo docker run -v ${pathName}:/root/sgx -it baiduxlab/sgx-rust bash -c "cd /root/sgx/enclave && export SGX_MODE=SW && bash"`);
}

runInDocker()
Expand Down

0 comments on commit c26d3de

Please sign in to comment.