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,11 +12,6 @@ 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- - 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)
2015- Installs the dotfiles
2116
2217This feature is intended to be configured as part of my personal user settings as a default feature
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:3 " : {}
10+ "ghcr.io/csutter/devcontainer-features/personal-setup:4 " : {}
1111}
1212```
1313
@@ -27,11 +27,6 @@ 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- - 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)
3530- Installs the dotfiles
3631
3732This feature is intended to be configured as part of my personal user settings as a default feature
Original file line number Diff line number Diff line change 11{
22 "id" : " personal-setup" ,
3- "version" : " 3 .0.0" ,
3+ "version" : " 4 .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" : " /etc /rcrc" ,
19+ "RCRC" : " /mnt/dotfiles/tag-devcontainer /rcrc" ,
2020 "_IS_DEVCONTAINER" : " true"
2121 },
2222 "postCreateCommand" : " rcup -vf"
Original file line number Diff line number Diff line change @@ -12,16 +12,14 @@ echo "Installing packages for distribution: $ID"
1212case " $ID " in
1313 debian|ubuntu)
1414 apt-get update
15- apt-get install -y fzf git-delta rcm tree openssh-client
15+ apt-get install -y fish git-delta rcm tree openssh-client
1616 ;;
1717 fedora)
18- dnf install -y fzf git-delta rcm tree openssh-clients
18+ dnf install -y fish git-delta rcm tree openssh-clients
1919 ;;
2020 * )
2121 echo " Error: Unsupported distribution: $ID "
2222 echo " This feature supports: debian, ubuntu, fedora"
2323 exit 1
2424 ;;
2525esac
26-
27- cp rcrc /etc/rcrc
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44source dev-container-features-test-lib
55
66check " delta is available" bash -c " which delta"
7- check " fzf is available" bash -c " which fzf "
7+ check " fish is available" bash -c " which fish "
88check " rcm is available" bash -c " which rcup"
99check " ssh is available" bash -c " which ssh"
1010check " tree is available" bash -c " which tree"
1111# Use a dotfile that should _always_ be present on any system
12- check " dotfiles are installed" bash -c " test -f $HOME /.config/fish/config.fish"
13- check " rcrc is present" bash -c " test -f /etc/rcrc"
12+ check " dotfiles are installed" bash -c " test -f $HOME /.rcrc"
1413check " _IS_DEVCONTAINER is set" bash -c " test \"\$ _IS_DEVCONTAINER\" = \" true\" "
1514
1615reportResults
You can’t perform that action at this time.
0 commit comments