diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 59132b9502..1053e11b26 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,9 +10,13 @@ "target": "dev" }, "mounts": [ - // Mount the local ~/.aws config to pass along AWS credentials for PBSS. - "source=${localEnv:HOME}/.aws,target=/home/bionemo/.aws,type=bind,consistency=cached" + // Mount the local ~/.aws config to pass along AWS credentials for PBSS, .gnupg for signing commits, .gitconfig for git. + "source=${localEnv:HOME}/.aws,target=/home/bionemo/.aws,type=bind,consistency=cached", + "source=${localEnv:HOME}/.gnupg,target=/home/bionemo/.gnupg,type=bind,consistency=cached", + "source=${localEnv:HOME}/.gitconfig,target=/home/bionemo/.gitconfig,type=bind,consistency=cached", + "source=${localEnv:HOME}/.ssh,target=/home/bionemo/.ssh,type=bind,consistency=cached" ], + "initializeCommand": "./.devcontainer/initializeCommand.sh", "postCreateCommand": "./.devcontainer/postCreateCommand.sh", "remoteUser": "bionemo", "customizations": { diff --git a/.devcontainer/initializeCommand.sh b/.devcontainer/initializeCommand.sh new file mode 100755 index 0000000000..97acba9a26 --- /dev/null +++ b/.devcontainer/initializeCommand.sh @@ -0,0 +1,3 @@ +#!/bin/bash +mkdir -p ~/.ssh ~/.gnupg +touch -a ~/.gitconfig