mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-02 00:07:11 +01:00
fix devcontainer setup
This commit is contained in:
parent
0f1bc40f00
commit
1c0162c181
@ -3,7 +3,7 @@
|
|||||||
"context": "..",
|
"context": "..",
|
||||||
"dockerComposeFile": "../docker-compose.yml",
|
"dockerComposeFile": "../docker-compose.yml",
|
||||||
"service": "dev",
|
"service": "dev",
|
||||||
"workspaceFolder": "/workspace",
|
"workspaceFolder": "/opt/frigate",
|
||||||
"shutdownAction": "stopCompose",
|
"shutdownAction": "stopCompose",
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"ms-python.python",
|
"ms-python.python",
|
||||||
|
@ -1,37 +1,26 @@
|
|||||||
version: '3'
|
version: "3"
|
||||||
services:
|
services:
|
||||||
dev:
|
dev:
|
||||||
container_name: core-dev
|
container_name: frigate-dev
|
||||||
user: vscode
|
user: vscode
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: docker/Dockerfile.core.dev
|
dockerfile: docker/Dockerfile.dev
|
||||||
volumes:
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
- .:/workspace:cached
|
|
||||||
command: /bin/sh -c "while sleep 1000; do :; done"
|
|
||||||
frigate:
|
|
||||||
container_name: frigate
|
|
||||||
privileged: true
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: docker/Dockerfile.amd64
|
|
||||||
# dockerfile: docker/Dockerfile.core.dev
|
|
||||||
devices:
|
devices:
|
||||||
- /dev/bus/usb:/dev/bus/usb
|
- /dev/bus/usb:/dev/bus/usb
|
||||||
- /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
- /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- .:/opt/frigate:cached
|
||||||
- ./config/config.yml:/config/config.yml:ro
|
- ./config/config.yml:/config/config.yml:ro
|
||||||
- ./debug:/media/frigate
|
- ./debug:/media/frigate
|
||||||
- ./frigate:/opt/frigate/frigate:cached
|
|
||||||
- ./migrations:/opt/frigate/migrations:cached
|
|
||||||
ports:
|
ports:
|
||||||
- '5000:5000'
|
- "5000:5000"
|
||||||
- '1935:1935'
|
- "5001:5001"
|
||||||
command: /bin/sh -c "service nginx start; while sleep 1000; do :; done"
|
- "8080:8080"
|
||||||
|
command: /bin/sh -c "sudo service nginx start; while sleep 1000; do :; done"
|
||||||
mqtt:
|
mqtt:
|
||||||
container_name: mqtt
|
container_name: mqtt
|
||||||
image: eclipse-mosquitto
|
image: eclipse-mosquitto:1.6
|
||||||
ports:
|
ports:
|
||||||
- '1883:1883'
|
- "1883:1883"
|
||||||
|
@ -14,6 +14,15 @@ RUN groupadd --gid $USER_GID $USERNAME \
|
|||||||
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
|
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
|
||||||
&& chmod 0440 /etc/sudoers.d/$USERNAME
|
&& chmod 0440 /etc/sudoers.d/$USERNAME
|
||||||
|
|
||||||
RUN apt-get install -y git
|
RUN apt-get install -y git curl vim
|
||||||
|
|
||||||
RUN pip3 install pylint black
|
RUN pip3 install pylint black
|
||||||
|
|
||||||
|
# Install Node 14
|
||||||
|
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
|
||||||
|
&& apt-get install -y nodejs
|
||||||
|
|
||||||
|
# Install MQTT CLI
|
||||||
|
RUN wget -q https://github.com/hivemq/mqtt-cli/releases/download/v4.6.0/mqtt-cli-4.6.0.deb \
|
||||||
|
&& apt-get install -y ./mqtt-cli-4.6.0.deb \
|
||||||
|
&& rm mqtt-cli-4.6.0.deb
|
Loading…
Reference in New Issue
Block a user