Building

Web Client

Requirements

  • Node 16

Steps

  1. Install the dependencies:

    npm install
    
  2. Ensure the prod environment file at web-client/src/environments/environment.prod.ts is correct for the build.

  3. 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

  1. 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

  1. Building optimised binaries:

    docker-compose build --build-arg CARGO_BUILD_FLAGS="--release" --build-arg CARGO_OUTPUT_PROFILE="release"