←back to thread

193 points dopple | 1 comments | | HN request time: 0.213s | source
Show context
nickjj ◴[] No.43745493[source]
Regular containers also happen to work great for testing dotfiles.

Many years ago I added an install script to https://github.com/nickjj/dotfiles to get set up in basically 1 command because I wanted a quick way to bootstrap my own system. I used the official Debian and Ubuntu images to test things.

Over the last few days I refactored things further to support Arch Linux which has an official Docker image too.

This enables being able to do full end to end tests in about 5 minutes. The container spins up in 1 second, the rest is the script running its course. Since it's just a container you can also use volume mounts and leave the container running in case you want to incrementally test things without wiping the environment.

Additionally it lets folks test it out without modifying their system in 1 command. Docker has enabled so many good things over the last 10+ years.

replies(4): >>43746133 #>>43747184 #>>43748049 #>>43749807 #
1. saagarjha ◴[] No.43748049[source]
I have one of these too. In fact if you have a dotfiles repo and an install.sh GitHub Codespaces will run it for you when setting up the container: https://github.com/saagarjha/dotfiles/blob/master/install.sh