Skip to content

Commit c0cc75f

Browse files
Updates to devcontainer (#77)
* checkpointing works with autoresume in this PR. Updates to match new structure. change save every n to reuse val check ineterval Signed-off-by: Steven Kothen-Hill <[email protected]> * updates devcontainer to include ssh, gpg, and gitconfig * Add mounts to devcontainer for signed commits, adds initialization script for devcontainer to create associated files and directories when they do not exist. * formatting * addressing comments --------- Signed-off-by: Steven Kothen-Hill <[email protected]>
1 parent 4ee5ea1 commit c0cc75f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
"target": "dev"
1111
},
1212
"mounts": [
13-
// Mount the local ~/.aws config to pass along AWS credentials for PBSS.
14-
"source=${localEnv:HOME}/.aws,target=/home/bionemo/.aws,type=bind,consistency=cached"
13+
// Mount the local ~/.aws config to pass along AWS credentials for PBSS, .gnupg for signing commits, .gitconfig for git.
14+
"source=${localEnv:HOME}/.aws,target=/home/bionemo/.aws,type=bind,consistency=cached",
15+
"source=${localEnv:HOME}/.gnupg,target=/home/bionemo/.gnupg,type=bind,consistency=cached",
16+
"source=${localEnv:HOME}/.gitconfig,target=/home/bionemo/.gitconfig,type=bind,consistency=cached",
17+
"source=${localEnv:HOME}/.ssh,target=/home/bionemo/.ssh,type=bind,consistency=cached"
1518
],
19+
"initializeCommand": "./.devcontainer/initializeCommand.sh",
1620
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
1721
"remoteUser": "bionemo",
1822
"customizations": {

.devcontainer/initializeCommand.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
mkdir -p ~/.ssh ~/.gnupg
3+
touch -a ~/.gitconfig

0 commit comments

Comments
 (0)