Skip to content

Commit

Permalink
Updates to devcontainer (#77)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
skothenhill-nv authored Aug 7, 2024
1 parent 4ee5ea1 commit c0cc75f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions .devcontainer/initializeCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
mkdir -p ~/.ssh ~/.gnupg
touch -a ~/.gitconfig

0 comments on commit c0cc75f

Please sign in to comment.