Skip to content

Commit

Permalink
chore(build): improve few configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
johntaiko committed Nov 1, 2024
1 parent 54291f3 commit 1584742
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY . .
RUN echo "Building for sgx with taskdb: ${TASKDB}"
RUN cargo build --release ${BUILD_FLAGS} --features "sgx" --features "docker_build" --features ${TASKDB}

FROM gramineproject/gramine:1.7-jammy AS runtime
FROM gramineproject/gramine:1.8-jammy AS runtime
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /opt/raiko

Expand Down
1 change: 1 addition & 0 deletions provers/sgx/config/sgx-guest.docker.manifest.template
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ sgx.remote_attestation = "dcap"
sys.enable_extra_runtime_domain_names_conf = true
sys.insecure__allow_eventfd = true
sys.stack.size = "8M"
sgx.enclave_size = "4G"
3 changes: 2 additions & 1 deletion provers/sgx/config/sgx-guest.local.manifest.template
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ sgx.trusted_files = [
"file:/usr/lib/ssl/certs/",
"file:sgx-guest",
]
sgx.max_threads = 32
sgx.max_threads = 512
sgx.remote_attestation = "dcap"
sys.enable_extra_runtime_domain_names_conf = true
sys.insecure__allow_eventfd = true
sys.stack.size = "8M"
sgx.enclave_size = "4G"
2 changes: 1 addition & 1 deletion provers/sgx/prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ fn parse_sgx_result(output: Vec<u8>) -> ProverResult<SgxResponse, String> {
Ok(SgxResponse {
proof: extract_field("proof"),
quote: extract_field("quote"),
input: B256::from_str(&extract_field("input")).unwrap(),
input: B256::from_str(&extract_field("input")).unwrap_or_default(),
})
}

Expand Down

0 comments on commit 1584742

Please sign in to comment.