Add devcontainer config and adjust docker compose to work with docker volumes
- Feb 27, 2025
-
-
Hal Blackburn authored
This allows a dev environment for the the repository to be automatically created by vscode (or other devcontainer-using tools). It works with both local filesystem bind mount workspaces, and named container volumes.
-
Hal Blackburn authored
When the workspace/git checkout is a container volume, it can't be mounted with a regular bind mount, as the compose config needs to know the volume name, mount point, and subdirectory within the mount point to use as the working directory. This commit allows these 3 options to be configured using environment variables, so that a devcontainer config can override the guidebook service mounts to reference the devcontainer's volume. The defaults continue to use the local bind mount, so using the compose config without additional configuration will work as before.
-
Hal Blackburn authored
Docker compose CLI now warns if a config contains a version property.
-
Hal Blackburn authored
When the workspace/git checkout is a container volume it's tricky to mount a single file from the volume into the plantuml container. However referencing the file when building the image is simple, so the logging config is now baked into the image at build time.
-