Commit graph

4 commits

Author SHA1 Message Date
Christian Kellner
94dedfc849 devcontainer: specify the workdir
Set the workdir to the osbuild source directory; this makes it
convenient when using docker/podman exec into the container.
2021-04-08 12:56:06 +02:00
Christian Kellner
1f86a2156d devcontainer: preserve history
Use a separate volume for /root/.local/share, which is where the
fish shell keeps its history file, in order to preserve it across
container rebuilds.
2021-04-08 12:56:06 +02:00
Christian Kellner
65cf620d4b devcontainer: install additional packages
Install more more tools and utilities that help with development
and testing of osbuild inside the dev container.
2021-04-08 12:56:06 +02:00
Christian Kellner
b6642db7a2 devcontainer: support for vs code devcontainer
Add a support for developing osbuild via Visual Studio Code
Remote Containers[1]. VS Code, if the extension is installed,
will automatically build the specified container via the
supplied Dockerfile and start a a VS Code server instance in
it and connect to it.
The container has the dependencies to develop osbuild, which
includes running the test and building images. For this the
container is started with `--privileged` since osbuild needs
various capabilities.
NB: not all extensions that are installed on the host are
automatically installed; instead a handful of basic ones that
are needed for python development are pre-installed.

[1] https://code.visualstudio.com/docs/remote/containers
2021-01-21 19:24:25 +01:00