Skip to content
Snippets Groups Projects
Commit 92491a25 authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

Updated

parent 34e0ea69
No related branches found
No related tags found
2 merge requests!334Revert "Updated",!331Build: DevContainer
Pipeline #1249616 passed with warnings
FROM mcr.microsoft.com/devcontainers/javascript-node:20 as develop
EXPOSE 6000
USER node
RUN yarn global add @vue/cli
\ No newline at end of file
version: "3.7"
services:
app:
build:
target: develop
user: node
userns_mode: keep-id:uid=1000,gid=1000
environment:
SSH_AUTH_SOCK: /.ssh/ssh-agent.sock
command: /bin/sh -c "while sleep 2s; do :; done"
labels:
- "traefik.enable=true"
- "traefik.http.routers.coscine-api.rule=HostRegexp(`web-ui.{.*}`)"
- "traefik.http.routers.coscine-api.entrypoints=webs"
volumes:
- ..:/workspace:cached
- ./.vscode-server:/home/node/.vscode-server/:cached
- ${SSH_AUTH_SOCK}:/.ssh/ssh-agent.sock
networks:
# - proxy-net
- default
networks:
default:
driver: bridge
# proxy-net:
# external: true
# name: proxy-net
\ No newline at end of file
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{ {
"name": "TypeScript", "name": "Web UI Devcontainer",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "dockerComposeFile": [ "compose.yml" ],
"image": "mcr.microsoft.com/devcontainers/typescript-node", "service": "app",
"workspaceFolder": "/workspace",
// Configure tool-specific properties. "updateRemoteUserUID": false,
"customizations": { "remoteUser": "node",
// Configure properties specific to VS Code. "containerUser": "node"
"vscode": { }
"settings": {}, \ No newline at end of file
"extensions": [
"Vue.volar",
"streetsidesoftware.code-spell-checker"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [9234],
// Use 'portsAttributes' to set default properties for specific forwarded ports.
// More info: https://containers.dev/implementors/json_reference/#port-attributes
"portsAttributes": {
"9234": {
"label": "Server",
"onAutoForward": "notify"
}
},
// Use 'onCreateCommand' to run commands before the container is created.
"onCreateCommand": "yarn install",
// Use 'postStartCommand' to run commands after the container is started.
"postStartCommand": "yarn dev",
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "root"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment