Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
add numtcs build arg to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasten committed Dec 9, 2022
1 parent 44f42f2 commit 619e168
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions BUILD.md
Expand Up @@ -9,6 +9,8 @@ DOCKER_BUILDKIT=1 docker build -t edb --secret id=signingkey,src=private.pem - <

Add `--build-arg heapsize=x` where x is the desired enclave heap size in MB. By default, heap size is 1024 MB.

Add `--build-arg numtcs=x` where x is the desired number of TCS (max threads). By default, number of TCS is 64.

Add `--build-arg production=ON` to build a production enclave. By default, a debug enclave is built.

Get the [era](https://github.com/edgelesssys/era) configuration:
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Expand Up @@ -33,11 +33,13 @@ RUN cd edgelessdb && export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) && cd /
&& make -j`nproc` edb-enclave

# sign edb
ARG heapsize=1024 production=OFF
ARG heapsize=1024
ARG numtcs=64
ARG production=OFF
RUN --mount=type=secret,id=signingkey,dst=/edbbuild/private.pem,required=true \
cd edbbuild \
&& . /opt/edgelessrt/share/openenclave/openenclaverc \
&& cmake -DHEAPSIZE=$heapsize -DPRODUCTION=$production /edgelessdb \
&& cmake -DHEAPSIZE=$heapsize -DNUMTCS=$numtcs -DPRODUCTION=$production /edgelessdb \
&& make sign-edb \
&& cat edgelessdb-sgx.json

Expand Down

0 comments on commit 619e168

Please sign in to comment.