From 0850cb9bc9b4aa97b5c9a2de403db4841d883760 Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Thu, 3 Feb 2022 14:46:35 +0000 Subject: [PATCH] making life easier [skip ci] --- .devcontainer/devcontainer.json | 6 +++--- .devcontainer/docker-compose.yml | 23 +++++++++++++++++++++++ .devcontainer/workspace.env | 1 + 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .devcontainer/docker-compose.yml create mode 100644 .devcontainer/workspace.env diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 39ababb..0487716 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,8 +1,8 @@ { "name": "GCT Generator", - "build": { - "dockerfile": "Dockerfile", - }, + "dockerComposeFile": "docker-compose.yml", + "service": "application", + "workspaceFolder": "/workspace", "settings": { "terminal.integrated.defaultProfile.linux": "bash" }, diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml new file mode 100644 index 0000000..b7f0d8a --- /dev/null +++ b/.devcontainer/docker-compose.yml @@ -0,0 +1,23 @@ +version: '3.7' + +services: + application: + container_name: gct-generator + build: + context: . + dockerfile: Dockerfile + args: + VARIANT: 16 + USER_UID: 1000 + USER_GID: 1000 + volumes: + - ..:/workspace:cached + - ~/.ssh:/home/node/.ssh:ro + - /var/run/docker.sock:/var/run/docker.sock + command: sleep infinity + user: node + env_file: + - ./workspace.env + ports: + - 8080:8080 + - 3000:3000 diff --git a/.devcontainer/workspace.env b/.devcontainer/workspace.env new file mode 100644 index 0000000..1598fe8 --- /dev/null +++ b/.devcontainer/workspace.env @@ -0,0 +1 @@ +# Left empty intentionally \ No newline at end of file