Setup

Setup

Environment

  • Ubuntu 20.04 with Linux Kernel ≥ 5.11

  • CPU: Intel Xeon E-2288G

  • Docker (>= 20.10.21) & Docker-Compose

Prepare SSH Keys

To access a private GitHub repository in Dockerfile, you need to configure your SSH keys:

# do not enter passphrase
ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cp ~/.ssh/id_ed25519 .

Then, you need to add the content in ~/.ssh/id_ed25519.pub to GitHub SSH keys by clicking the New SSH keys button.

Prepare Cert Files

To establish a TLS connection, we need a CA and a client cert for mutual authentication. We store them in the cert directory:

  • Generate cert/ca.key:

  • Generate cert/ca.crt:

  • Generate client private key:

  • Export keys to pkcs8 in unencrypted format:

  • Generate client CSR:

  • Generate client cert:

Pull Docker Images

Follow this document to authenticate to GCP Artifact Registry.

  • asia-northeast1-docker.pkg.dev/clique-demo/clique-sibyl-base/clique-sibyl-base:2.2.2

  • asia-northeast1-docker.pkg.dev/clique-demo/clique-sibyl-base/clique-sibyl-mtls-base:2.2.2

  • asia-northeast1-docker.pkg.dev/clique-demo/clique-sibyl-base/clique-sibyl-dcsv2-base:2.2.2

  • asia-northeast1-docker.pkg.dev/clique-demo/clique-sibyl-base/clique-sibyl-dcsv2-mtls-base:2.2.2

Last updated