mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-22 02:03:01 +02:00
Add doc development updates to NEWS and get Podman + Docker Compose working again (#1274).
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
* #1269: Fix the ZFS hook to support datasets with a "canmount" property of "noauto".
|
||||
* #1270: Follow symlinks when backing up borgmatic configuration files to support the "bootstrap"
|
||||
action.
|
||||
* #1274: Add an optional override for the documentation development listen port and use Podman
|
||||
Compose if present.
|
||||
* Add a policy about the use of generative AI in the borgmatic codebase:
|
||||
https://torsion.org/borgmatic/how-to/develop-on-borgmatic/#use-of-generative-ai
|
||||
|
||||
|
||||
@@ -225,9 +225,11 @@ borgmatic's developer build for documentation optionally supports using
|
||||
[Podman](https://podman.io/) instead of Docker.
|
||||
|
||||
Setting up Podman is outside the scope of this documentation. But once you
|
||||
install and configure Podman, then `scripts/dev-docs` should automatically use
|
||||
Podman instead of Docker (make sure you have
|
||||
[`podman-compose`](https://github.com/containers/podman-compose) installed).
|
||||
install and configure Podman, then `scripts/dev-docs` automatically uses Podman
|
||||
instead of Docker and [Podman
|
||||
Compose](https://github.com/containers/podman-compose) (if present) instead of
|
||||
Docker Compose. However Podman works fine with either Podman Compose or Docker
|
||||
Compose.
|
||||
|
||||
|
||||
## Use of generative AI
|
||||
|
||||
@@ -7,6 +7,12 @@ if command -v podman-compose >/dev/null 2>&1; then
|
||||
export CONTAINER_SOCKET_PATH="${XDG_RUNTIME_DIR:-/run/user/$UID}/podman/podman.sock"
|
||||
else
|
||||
COMPOSE_CMD="docker-compose"
|
||||
USER_PODMAN_SOCKET_PATH=/run/user/$UID/podman/podman.sock
|
||||
export CONTAINER_SOCKET_PATH="$USER_PODMAN_SOCKET_PATH"
|
||||
|
||||
if [ -e "$USER_PODMAN_SOCKET_PATH" ]; then
|
||||
export DOCKER_HOST="unix://$USER_PODMAN_SOCKET_PATH"
|
||||
fi
|
||||
fi
|
||||
|
||||
BUILDKIT_PROGRESS=plain $COMPOSE_CMD --file docs/docker-compose.yaml up --build --force-recreate
|
||||
|
||||
Reference in New Issue
Block a user