Fix devcontainer
But this is still failing with permission denied in some cases.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04
|
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
|
||||||
|
|
||||||
USER vscode
|
USER vscode
|
||||||
|
|
||||||
@@ -7,3 +7,6 @@ ARG HOME="/home/vscode"
|
|||||||
ENV VOLTA_HOME="${HOME}/.volta"
|
ENV VOLTA_HOME="${HOME}/.volta"
|
||||||
ENV PATH="${VOLTA_HOME}/bin:${PATH}"
|
ENV PATH="${VOLTA_HOME}/bin:${PATH}"
|
||||||
RUN bash -c "$(curl -fsSL https://get.volta.sh)" -- --skip-setup
|
RUN bash -c "$(curl -fsSL https://get.volta.sh)" -- --skip-setup
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/share/docker-init.sh"]
|
||||||
|
CMD ["sleep", "infinity"]
|
||||||
|
|||||||
@@ -4,12 +4,10 @@
|
|||||||
"service": "dev",
|
"service": "dev",
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
|
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
|
||||||
"moby": false,
|
"moby": false
|
||||||
"dockerDashComposeVersion": "v2"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"workspaceFolder": "${localWorkspaceFolder}",
|
"workspaceFolder": "${localWorkspaceFolder}",
|
||||||
"shutdownAction": "stopCompose",
|
|
||||||
"forwardPorts": [10001, "hass:8123", "frigate:5000"],
|
"forwardPorts": [10001, "hass:8123", "frigate:5000"],
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"10001": {
|
"10001": {
|
||||||
@@ -25,8 +23,8 @@
|
|||||||
"onAutoForward": "silent"
|
"onAutoForward": "silent"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"initializeCommand": ".devcontainer/initialize.sh",
|
"initializeCommand": [".devcontainer/initialize.sh"],
|
||||||
"postCreateCommand": "yarn install",
|
"postCreateCommand": ["yarn", "install"],
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
|
|||||||
+4
-3
@@ -2,9 +2,10 @@
|
|||||||
services:
|
services:
|
||||||
dev:
|
dev:
|
||||||
init: true
|
init: true
|
||||||
build: .devcontainer
|
build:
|
||||||
entrypoint: /usr/local/share/docker-init.sh
|
context: .
|
||||||
command: sleep infinity
|
dockerfile: .devcontainer/Dockerfile
|
||||||
|
network_mode: host
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user