mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
Also use said devcontainer i GitHub workflows to validate config. * feat(devcontainer): build devcontainer Signed-off-by: Vegard Hagen <[email protected]> * feat(ci): validate tofu files on push Signed-off-by: Vegard Hagen <[email protected]> * feat(devcontainer): simplify devcontainer Signed-off-by: Vegard Hagen <[email protected]> * fix(devcontainer): don't cache package index This will reduce the final image size. Signed-off-by: Vegard Hagen <[email protected]> * feat(devcontainer): switch to ubuntu and use devcontainer features as much as possible Signed-off-by: Vegard Hagen <[email protected]> --------- Signed-off-by: Vegard Hagen <[email protected]>
30 lines
870 B
Markdown
30 lines
870 B
Markdown
# Devcontainer
|
|
|
|
A container with all the necessary tools and then some used in this homelab.
|
|
Check available features at [https://containers.dev/features](https://containers.dev/features),
|
|
or edit the `Containerfile`.
|
|
|
|
**Disclaimer**: this is a fairly untested feature from the main author,
|
|
feedback is welcome.
|
|
|
|
## Getting started
|
|
|
|
Find the appropriate guide for your IDE, e.g.
|
|
|
|
* [IDEA](https://www.jetbrains.com/help/idea/start-dev-container-inside-ide.html)
|
|
* [VSCode](https://code.visualstudio.com/docs/devcontainers/containers)
|
|
|
|
Alternatively, you can start the devcontainer manually by running
|
|
|
|
```shell
|
|
docker run -it --rm \
|
|
--user $(id -u):$(id -g) \
|
|
--name homelab-devcontainer \
|
|
--mount target=/tmp,type=tmpfs \
|
|
--mount type=bind,src=.,dst=/workspace \
|
|
--workdir /workspace \
|
|
ghcr.io/vehagn/homelab-devcontainer:latest
|
|
```
|
|
|
|
from the project root.
|