Switch to devcontainer:@

This commit is contained in:
Felipe Santos
2024-09-12 13:52:56 +00:00
parent 22de42b5a8
commit 49924fc801
3 changed files with 6 additions and 20 deletions
+5 -11
View File
@@ -1,12 +1,6 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
FROM ghcr.io/felipecrs/devcontainer:2
USER vscode
# Install Volta
ARG HOME="/home/vscode"
ENV VOLTA_HOME="${HOME}/.volta"
ENV PATH="${VOLTA_HOME}/bin:${PATH}"
RUN bash -c "$(curl -fsSL https://get.volta.sh)" -- --skip-setup
ENTRYPOINT ["/usr/local/share/docker-init.sh"]
CMD ["sleep", "infinity"]
RUN --mount=type=bind,source=package.json,target=/tmp/package.json \
retry --tries 3 --sleep 15s -- volta install \
"node@$(jq -er .volta.node /tmp/package.json)" \
"yarn@$(jq -er .volta.yarn /tmp/package.json)"
-5
View File
@@ -2,11 +2,6 @@
{
"dockerComposeFile": "../docker-compose.yml",
"service": "dev",
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": false
}
},
"workspaceFolder": "${localWorkspaceFolder}",
"forwardPorts": [10001, "hass:8123", "frigate:5000"],
"portsAttributes": {
+1 -4
View File
@@ -1,15 +1,12 @@
---
services:
dev:
init: true
build:
context: .
dockerfile: .devcontainer/Dockerfile
network_mode: host
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker-host.sock
- /var/run/docker.sock:/var/run/docker.sock
- .:${LOCAL_WORKSPACE_FOLDER}:cached
hass:
extends: