From 51dd890eb65406ff5f11e4a7a388a77dd4447941 Mon Sep 17 00:00:00 2001 From: Dmitry Marchuk Date: Sun, 7 Jun 2026 08:03:55 +0300 Subject: [PATCH] Remove accidential changes --- .devcontainer/devcontainer.json | 15 +++++++++++++-- .devcontainer/post_create.sh | 8 ++------ 2 files changed, 15 insertions(+), 8 deletions(-) mode change 100755 => 100644 .devcontainer/post_create.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6a0f447f13..c782fb32ff 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,8 +6,19 @@ "initializeCommand": ".devcontainer/initialize.sh", "postCreateCommand": ".devcontainer/post_create.sh", "overrideCommand": false, - "remoteUser": "root", - "features": {}, + "remoteUser": "vscode", + "features": { + "ghcr.io/devcontainers/features/common-utils:2": {} + // Uncomment the following lines to use ONNX Runtime with CUDA support + // "ghcr.io/devcontainers/features/nvidia-cuda:1": { + // "installCudnn": true, + // "installNvtx": true, + // "installToolkit": true, + // "cudaVersion": "12.5", + // "cudnnVersion": "9.4.0.58" + // }, + // "./features/onnxruntime-gpu": {} + }, "forwardPorts": [ 8971, 5000, diff --git a/.devcontainer/post_create.sh b/.devcontainer/post_create.sh old mode 100755 new mode 100644 index 9bad7f208c..fcf7ca693f --- a/.devcontainer/post_create.sh +++ b/.devcontainer/post_create.sh @@ -13,12 +13,8 @@ fi # Frigate normal container runs as root, so it have permission to create # the folders. But the devcontainer runs as the host user, so we need to # create the folders and give the host user permission to write to them. -SUDO="" -if [[ $EUID -ne 0 ]]; then - SUDO="sudo" -fi -$SUDO mkdir -p /media/frigate -$SUDO chown -R "$(id -u):$(id -g)" /media/frigate +sudo mkdir -p /media/frigate +sudo chown -R "$(id -u):$(id -g)" /media/frigate # When started as a service, LIBAVFORMAT_VERSION_MAJOR is defined in the # s6 service file. For dev, where frigate is started from an interactive