Building
Web Client
Requirements
- Node 16
Steps
-
Install the dependencies:
npm install -
Ensure the prod environment file at
web-client/src/environments/environment.prod.tsis correct for the build. -
Build the bundle:
npm build:prod
The build output is in the www directory.
Web Server
Requirements
- Docker with buildkit enabled
- docker-compose
Steps
Note: docker images build in HW mode can only function on SGX capable hardware with the DCAP drivers installed
-
Building docker image
-
for HW mode:
docker-compose build server-hw -
for SW mode:
docker-compose build server-sw
-
Asset Services
Requirements
- Docker with buildkit enabled
- docker-compose
Steps
-
Building optimised binaries:
docker-compose build --build-arg CARGO_BUILD_FLAGS="--release" --build-arg CARGO_OUTPUT_PROFILE="release"