Skip to content

Commit

Permalink
Merge pull request #232 from starnutoditopo/features/bind-mount-confi…
Browse files Browse the repository at this point in the history
…g-files

Add support for bind-mount for .cache/viking and .config/viking
  • Loading branch information
rnorris authored Dec 19, 2023
2 parents 4cdf64e + 1c88113 commit 402eabf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cache/viking/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file exists just for git to keep its containing folder
1 change: 1 addition & 0 deletions .config/viking/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file exists just for git to keep its containing folder
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
}
},
"mounts": [
"source=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind,consistency=cached"
"source=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind,consistency=cached",
"source=${localWorkspaceFolder}/.cache/viking,target=/home/codespace/.cache/viking,type=bind,consistency=cached",
"source=${localWorkspaceFolder}/.config/viking,target=/home/codespace/.config/viking,type=bind,consistency=cached"
],
"containerEnv": {
// Optionally, uncomment the next line
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,8 @@ windows/installer/viking*.exe
flatpak/
flatpakrepo/
viking*.flatpak

# Bind-mounted .cache/viking and .config/viking
.cache/viking/**
.config/viking/**
!.keep

0 comments on commit 402eabf

Please sign in to comment.