goharbor / harbor-arm

Build Harbor for arm architecture.
Apache License 2.0
69 stars 41 forks source link

Not working with podman #48

Open MTRNord opened 1 year ago

MTRNord commented 1 year ago

The redis script fails with docker not being found if the system only supports using podman. Making it impossible to build. (There exist systems which dont ship docker these days)

Trying to replace things with podman fails as well:

CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES
time="2023-06-12T17:16:31Z" level=warning msg="Error loading CNI config file /etc/cni/net.d/200-loopback.conflist: error parsing configuration list: no name"
Error: inspecting object: no such object: "photon_build_spec:4.0"
time="2023-06-12T17:16:31Z" level=warning msg="Error loading CNI config file /etc/cni/net.d/200-loopback.conflist: error parsing configuration list: no name"
Error: inspecting object: no such object: "photon_build_spec:4.0"
run: podman run -v /tmp/redis.bFZmRn/stage/RPMS:/usr/src/photon/RPMS -v /tmp/redis.bFZmRn/stage/SRPMS:/usr/src/photon/SRPMS --privileged -d --name build_spec --network=host photon:4.0 tail -f /dev/null
time="2023-06-12T17:16:31Z" level=warning msg="Error loading CNI config file /etc/cni/net.d/200-loopback.conflist: error parsing configuration list: no name"
Error: short-name resolution enforced but cannot prompt without a TTY