From 8e6fa2aa590c339ac3df2e4940310e6c40941aa9 Mon Sep 17 00:00:00 2001 From: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:38:10 -0700 Subject: [PATCH] Support preserving Earthly configuration This mounts the `.earthly` directory from the user's homedir so that any configuration (like login or org) persists between devcontainer instances. --- .devcontainer/devcontainer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a3697184..97ca29f5 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -25,8 +25,10 @@ } }, "remoteUser": "vscode", + "mounts": [ + "source=${localEnv:HOME}/.earthly,target=/home/vscode/.earthly,type=bind,consistency=cached" + ], "containerEnv": { - "EARTHLY_ORG": "marinatedconcrete", "EARTHLY_SATELLITE": "config-repo" } }