-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add debian+nix dev container #360
Conversation
This commit adds a dev container configuration file for a debian bullseye + nix container. Supporting IDEs, such as VS Code, should offer to open the cloned repository in the dev container, where users can then follow the [minimal setup](https://github.com/bugbakery/transcribee/blob/main/doc/development_setup.md#minimal-setup-nix) steps to quickly have a running dev instance without fiddling with their linux distro or nix locally. It's a little bit more comfortable for VS Code users than the minimal docker setup.
Nice, this also enables github codespaces, right? |
d94541a
to
bd152e3
Compare
Yeah, I believe that should also enable codespaces! It does not currently automatically run |
I think not running nix-shell or dev.sh is fine (at least for now), but could you please add some documentation on how to use this to doc/development_setup.md |
Also sadly this doesn't seem to work in codespaces right now due to some bug NixOS/nix#6680 |
I tried running a codespace on my fork and it seemed to work, but I'll try again. |
Another thing that might be useful is to mount /nix into a volume so it persists between rebuilds. Currently if you rebuild the container, the nix cache is blown away as well, which is a bit annoying. |
c4e1553
to
60a6d33
Compare
* Switch to nix-devcontainer, which automatically runs nix-shell shell.nix * Use compose file to enable caching /nix in a volume * Add onCreateCommand to initialize nix env on first container run * Add documentation for dev container in `development_setup.md`
60a6d33
to
e6b8d6b
Compare
Ok, I think I'm happy with this. Changes:
|
|
This commit adds a dev container configuration file for a debian bullseye + nix container. Supporting IDEs, such as VS Code, should offer to open the cloned repository in the dev container, where users can then follow the minimal setup steps to quickly have a running dev instance without fiddling with their linux distro or nix locally.
It's a little bit more comfortable for VS Code users than the minimal docker setup.