Skip to main content

Installing QAnswer on Scaleway

For an optimal cloud experience, we recommend using Scaleway as your cloud provider. Our cloud offering leverages the L40S GPU Instance provided by Scaleway. This instance is pre-configured with the NVIDIA driver, significantly reducing setup complexity and saving you time and effort.

Instance SizeGPUGPU Memory (GiB)vCPUsMemory (GiB)Storage (GB)Network Bandwidth (Gbps)
L40S-1-48G148896~16002.5

Installing a Container Runtime

Depending on your preference, you can choose to install either Docker or Podman as your container runtime. Follow the respective instructions below:

Installing Docker

If Docker is not yet installed on your machine, follow the official Docker installation guide to set it up.

Installing Podman (Alternative to Docker)

If Podman is not yet installed on your machine, you can install it by following the official Podman installation guide.

Installing podman-compose

To use Podman with docker-compose-like functionality, you’ll need to install podman-compose. Refer to the official podman-compose documentation for installation steps.

Once installed, verify that both Podman and podman-compose are properly set up by running:

podman --version
podman-compose --version

Install NVIDIA Container Toolkit

The NVIDIA Container Toolkit is required for running GPU-enabled containers using Docker or other container runtimes. Below are the steps to install it:

# 1. configure production repo:
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list

# 2. Update the packages list from the repository:
sudo apt-get update

# 3. Install the NVIDIA Container Toolkit packages:
sudo apt-get install -y nvidia-container-toolkit
warning

After the installation of nvidia-container-toolkit, please restart the service Docker/Podman.

# For Docker
sudo service docker restart
# For Podman
sudo service podman restart

Install & Deploy QAnswer

QAnswer is provided as a docker-compose file. You can clone the repository by running the following command

git clone https://gitlab.the-qa-company.com/qanswer-app/qanswer-bundle.git

To deploy QAnswer, navigate to the qanswer-bundle directory. Depending on your container runtime (Docker or Podman), follow the steps below:

Steps for Docker:

1. Run our setup script, it will pull all the container images we need. You need to put here the credentials we will provide to you:

QANSWER_REGISTRY_USER=<user-we-provide> \
QANSWER_REGISTRY_PASSWORD=<password-we-provide> \
VERSION=main source ./setup.sh --container_runtime docker --no_documentation

2. Start the QAnswer bundle using docker compose:

Run the docker command:

QANSWER_KEY=<qanswerKey-we-provide> \
VERSION=main docker compose up -d

Join Us

We value your feedback and are always here to assist you.
If you need additionnal help, feel free to join our Discord server. We look forward to hearing from you!

Discord Community Server