File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ I've previously (ab)used the _Dev Containers_ extension's built in dotfiles supp
1212This feature:
1313- Installs a set of packages in the container (including ` rcm ` for dotfiles management)
1414- Mounts my dotfiles repositories into the container
15- - Installs the dotfiles (with appropriate tags)
15+ - Copies in an ` rcrc ` for dotfiles configuration, including:
16+ - setting the correct tags and dotfiles mount locations
17+ - avoiding setting up git config (as VS Code will copy it into the container anyway with
18+ modifications, which would modify our canonical dotfiles version with transient,
19+ container-specific setup)
20+ - Installs the dotfiles
1621
1722This feature is intended to be configured as part of my personal user settings as a default feature
1823for all devcontainers (through ` dev.containers.defaultFeatures ` ). It's obviously specific to me,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Sets up my desired software and configuration for any devcontainer environment.
77
88``` json
99"features" : {
10- "ghcr.io/csutter/devcontainer-features/personal-setup:1 " : {}
10+ "ghcr.io/csutter/devcontainer-features/personal-setup:2 " : {}
1111}
1212```
1313
@@ -27,7 +27,12 @@ I've previously (ab)used the _Dev Containers_ extension's built in dotfiles supp
2727This feature:
2828- Installs a set of packages in the container (including ` rcm ` for dotfiles management)
2929- Mounts my dotfiles repositories into the container
30- - Installs the dotfiles (with appropriate tags)
30+ - Copies in an ` rcrc ` for dotfiles configuration, including:
31+ - setting the correct tags and dotfiles mount locations
32+ - avoiding setting up git config (as VS Code will copy it into the container anyway with
33+ modifications, which would modify our canonical dotfiles version with transient,
34+ container-specific setup)
35+ - Installs the dotfiles
3136
3237This feature is intended to be configured as part of my personal user settings as a default feature
3338for all devcontainers (through ` dev.containers.defaultFeatures ` ). It's obviously specific to me,
Original file line number Diff line number Diff line change 11{
22 "id" : " personal-setup" ,
3- "version" : " 1.4 .0" ,
3+ "version" : " 2.0 .0" ,
44 "name" : " Personal Setup" ,
55 "description" : " Sets up my desired software and configuration for any devcontainer environment." ,
66 "mounts" : [
1616 }
1717 ],
1818 "containerEnv" : {
19- "RCRC" : " /mnt/dotfiles/tag-devcontainer /rcrc" ,
19+ "RCRC" : " /etc /rcrc" ,
2020 "_IS_DEVCONTAINER" : " true"
2121 },
2222 "postCreateCommand" : " rcup -vf"
Original file line number Diff line number Diff line change @@ -23,3 +23,5 @@ case "$ID" in
2323 exit 1
2424 ;;
2525esac
26+
27+ cp rcrc /etc/rcrc
Original file line number Diff line number Diff line change 1+ EXCLUDES="*.md config/git/config"
2+ TAGS="devcontainer"
3+ DOTFILES_DIRS="/mnt/dotfiles /mnt/dotfiles-private"
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ check "tree is available" bash -c "which tree"
1010check " ssh is available" bash -c " which ssh"
1111# Use a dotfile that should _always_ be present on any system
1212check " dotfiles are installed" bash -c " test -f $HOME /.config/fish/config.fish"
13+ check " rcrc is present" bash -c " test -f /etc/rcrc"
1314check " _IS_DEVCONTAINER is set" bash -c " test \"\$ _IS_DEVCONTAINER\" = \" true\" "
1415
1516reportResults
You can’t perform that action at this time.
0 commit comments