Celantur On-premise Installation

Celantur on-premise is a Dockerised application with a simple command-line interface to anonymise images.

Check installed software

You can check whether dependencies are already installed:

  • Docker: docker version
  • NVIDIA driver: nvidia-smi
  • NVIDIA Docker runtime: nvidia-docker version
  • (Optional) AWS CLI: aws --version

If any of the above commands returns an error, proceed with the next section or parts of it.

Set up host machine

  1. Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

Add your user to the docker group. It takes effect with the next login.

sudo groupadd docker
sudo usermod -aG docker $USER
  1. Install NVIDIA driver with sudo apt install nvidia-driver-460
  2. Install nvidia-docker2: Required to access the GPUs within the Docker containers.
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

sudo apt update
sudo apt install nvidia-docker2 
sudo systemctl restart docker
  1. Test the setup.
docker run --rm --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark

Optional: Setup AWS

AWS CLI can be used to authenticate with Amazon Elastic Container Registry (ECR).

Install AWS CLI:

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

Run aws configure to configure your credentials for accessing Celantur Docker repository on AWS.

AWS CLI configuration

Prompt Input
AWS Access Key ID provided by Celantur team
AWS Secret Access Key provided by Celantur team
Default region name `eu-central-1` (for Frankfurt, Germany)
`ap-southeast-1` (for Singapore)
Default output format `json`

Get Docker image

Run docker-pull.sh to pull the Docker image from ECR.

bash docker-pull.sh