From 952f8d37f10fef8879a08c0c38bc2b8ee72f9b97 Mon Sep 17 00:00:00 2001
From: Johannes Zumthurm <jzumthurm@student.ethz.ch>
Date: Sat, 22 Apr 2023 22:03:56 +0000
Subject: [PATCH] Add devcontainer for development with VSCode

---
 .devcontainer/Dockerfile        |  4 ++++
 .devcontainer/devcontainer.json | 22 ++++++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 .devcontainer/Dockerfile
 create mode 100644 .devcontainer/devcontainer.json

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000..117364c
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,4 @@
+
+FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:14
+
+EXPOSE 9000
\ No newline at end of file
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..039b25c
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,22 @@
+// For format details, see https://aka.ms/devcontainer.json. For config options, see the
+// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
+{
+	"name": "amiv-admintool",
+	"build": {
+		"dockerfile": "Dockerfile"	
+	},
+	// Features to add to the dev container. More info: https://containers.dev/features.
+	// "features": {},
+
+	// Use 'forwardPorts' to make a list of ports inside the container available locally.
+	"forwardPorts": [9000],
+
+	// Uncomment the next line to run commands after the container is created.
+	"postCreateCommand": "npm install"
+
+	// Configure tool-specific properties.
+	// "customizations": {},
+
+	// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
+	//"remoteUser": "node"
+}
-- 
GitLab