From faf883257237e2432e1875937a01dd3529882d26 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 26 Feb 2024 23:16:02 +0100 Subject: [PATCH] Add COMPOSE_PROFILES note on installing.md --- INSTALLING.md | 2 ++ front/packages/models/src/login.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/INSTALLING.md b/INSTALLING.md index 00c28d07..bc802aa5 100644 --- a/INSTALLING.md +++ b/INSTALLING.md @@ -81,6 +81,7 @@ Kyoo will default to use your primary card (located at `/dev/dri/renderD128`). I can use the `GOTRANSCODER_VAAPI_RENDERER` env-var to specify `/dev/dri/renderD129` or another one. Then you can simply run kyoo using `docker compose --profile vaapi up -d` (notice the `--profile vaapi` added) +You can also add `COMPOSE_PROFILES=vaapi` to your `.env` instead of adding the `--profile` flag. ## Nvidia @@ -93,6 +94,7 @@ To test if everything works, you can run `sudo docker run --rm --gpus all ubuntu you might need to add `--runtime nvidia` like so: `sudo docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi` After that, you can now use `docker compose --profile nvidia up -d` to start kyoo with nvidia hardware acceleration (notice the `--profile nvidia` added). +You can also add `COMPOSE_PROFILES=nvidia` to your `.env` instead of adding the `--profile` flag. Note that most nvidia cards have an artificial limit on the number of encodes. You can confirm your card limit [here](https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new). This limit can also be removed by applying an [unofficial patch](https://github.com/keylase/nvidia-patch) to you driver. diff --git a/front/packages/models/src/login.ts b/front/packages/models/src/login.ts index 2875a4f4..6ae89d6e 100644 --- a/front/packages/models/src/login.ts +++ b/front/packages/models/src/login.ts @@ -78,6 +78,7 @@ export const getTokenWJ = async (account?: Account | null): ReturnType