Skip to content

Commit 7ca0cca

Browse files
authored
fixed build on podman from sources (#50)
Signed-off-by: Oleksander Piskun <[email protected]>
1 parent 9d09e28 commit 7ca0cca

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
22
# SPDX-License-Identifier: AGPL-3.0-or-later
33

4-
FROM haproxy:2.9.11-alpine3.20
4+
FROM docker.io/library/haproxy:2.9.11-alpine3.20
55

66
USER root
77

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ To build image locally use:
110110
docker build -f ./Dockerfile -t nextcloud-appapi-dsp:latest ./
111111
```
112112

113+
<details>
114+
<summary>Podman</summary>
115+
116+
```bash
117+
podman build --format=docker -f ./Dockerfile -t nextcloud-appapi-dsp:latest ./
118+
```
119+
</details>
120+
113121
Deploy image(for `nextcloud-docker-dev`):
114122

115123
```shell
@@ -160,6 +168,21 @@ docker run -e NC_HAPROXY_PASSWORD="some_secure_password" \
160168
--privileged -d nextcloud-appapi-dsp:latest
161169
```
162170

171+
<details>
172+
<summary>Podman rootless</summary>
173+
174+
You can use this when Nextcloud is installed in Docker(for example), and the DSP will run on the host network on Podman.
175+
176+
```bash
177+
podman run -e NC_HAPROXY_PASSWORD="some_secure_password" \
178+
-e BIND_ADDRESS="172.17.0.1" \
179+
-v /run/user/1000/podman/podman.sock:/var/run/docker.sock \
180+
-v `pwd`/certs/cert.pem:/certs/cert.pem \
181+
--name nextcloud-appapi-dsp -h nextcloud-appapi-dsp --net host \
182+
--privileged -d nextcloud-appapi-dsp:latest
183+
```
184+
</details>
185+
163186
After that create daemon in AppAPI from the Docker Socket Proxy template, with next parameters:
164187
1. Host: `host.docker.internal:2375`
165188
2. Tick `https` checkbox.

0 commit comments

Comments
 (0)