From 856133c1afe2283c7795de123346ebc0781f962e Mon Sep 17 00:00:00 2001 From: Oleksander Piskun Date: Tue, 23 Sep 2025 19:15:57 +0300 Subject: [PATCH] fixed build on podman from sources Signed-off-by: Oleksander Piskun --- Dockerfile | 2 +- README.md | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e4c90ef..16b53da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors # SPDX-License-Identifier: AGPL-3.0-or-later -FROM haproxy:2.9.11-alpine3.20 +FROM docker.io/library/haproxy:2.9.11-alpine3.20 USER root diff --git a/README.md b/README.md index c4acba7..8c8c727 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,14 @@ To build image locally use: docker build -f ./Dockerfile -t nextcloud-appapi-dsp:latest ./ ``` +
+ Podman + + ```bash + podman build --format=docker -f ./Dockerfile -t nextcloud-appapi-dsp:latest ./ + ``` +
+ Deploy image(for `nextcloud-docker-dev`): ```shell @@ -160,6 +168,21 @@ docker run -e NC_HAPROXY_PASSWORD="some_secure_password" \ --privileged -d nextcloud-appapi-dsp:latest ``` +
+ Podman rootless + + You can use this when Nextcloud is installed in Docker(for example), and the DSP will run on the host network on Podman. + + ```bash + podman run -e NC_HAPROXY_PASSWORD="some_secure_password" \ + -e BIND_ADDRESS="172.17.0.1" \ + -v /run/user/1000/podman/podman.sock:/var/run/docker.sock \ + -v `pwd`/certs/cert.pem:/certs/cert.pem \ + --name nextcloud-appapi-dsp -h nextcloud-appapi-dsp --net host \ + --privileged -d nextcloud-appapi-dsp:latest + ``` +
+ After that create daemon in AppAPI from the Docker Socket Proxy template, with next parameters: 1. Host: `host.docker.internal:2375` 2. Tick `https` checkbox.