mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-08 13:01:13 +03:00
Remove accidential changes
This commit is contained in:
parent
8f6e083420
commit
51dd890eb6
@ -6,8 +6,19 @@
|
|||||||
"initializeCommand": ".devcontainer/initialize.sh",
|
"initializeCommand": ".devcontainer/initialize.sh",
|
||||||
"postCreateCommand": ".devcontainer/post_create.sh",
|
"postCreateCommand": ".devcontainer/post_create.sh",
|
||||||
"overrideCommand": false,
|
"overrideCommand": false,
|
||||||
"remoteUser": "root",
|
"remoteUser": "vscode",
|
||||||
"features": {},
|
"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": [
|
"forwardPorts": [
|
||||||
8971,
|
8971,
|
||||||
5000,
|
5000,
|
||||||
|
|||||||
8
.devcontainer/post_create.sh
Executable file → Normal file
8
.devcontainer/post_create.sh
Executable file → Normal file
@ -13,12 +13,8 @@ fi
|
|||||||
# Frigate normal container runs as root, so it have permission to create
|
# 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
|
# 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.
|
# create the folders and give the host user permission to write to them.
|
||||||
SUDO=""
|
sudo mkdir -p /media/frigate
|
||||||
if [[ $EUID -ne 0 ]]; then
|
sudo chown -R "$(id -u):$(id -g)" /media/frigate
|
||||||
SUDO="sudo"
|
|
||||||
fi
|
|
||||||
$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
|
# When started as a service, LIBAVFORMAT_VERSION_MAJOR is defined in the
|
||||||
# s6 service file. For dev, where frigate is started from an interactive
|
# s6 service file. For dev, where frigate is started from an interactive
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user