From d75cd8586b5449ad1a95bbb729afed69d672ac71 Mon Sep 17 00:00:00 2001 From: Brett Sutton Date: Sat, 20 Aug 2022 15:10:01 +1000 Subject: [PATCH] Added mount points so the container is automatically logged into onepub if the host is. --- .devcontainer/devcontainer.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 751c50e..7e5f6dd 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,5 +20,10 @@ "features": { "git": "latest", "github-cli": "latest" - } + }, + "mounts": [ + "source=${localEnv:HOME}/.config/dart/pub-tokens.json,target=${containerEnv:HOME}/.config/dart/pub-tokens.json,type=bind,consistency=cached", + "source=${localEnv:HOME}/.onepub/onepub.yaml,target=${containerEnv:HOME}/.onepub/onepub.yaml,type=bind,consistency=cached" + ] + }