Open hajnalmt opened 1 month ago
There were PRs regarding this, but they were disregarded because the user supposedly used an ARM-based system. https://github.com/goharbor/harbor/pull/18766 I am using amd.
dpkg --print-architecture
amd64
I have an 11th gen Intel CPU.
lscpu | grep "Model name"
Model name: 11th Gen Intel(R) Core(TM) i5-11500H @ 2.90GHz
With Ubuntu as OS:
cat /etc/os-release | head -1
PRETTY_NAME="Ubuntu 22.04.4 LTS"
After an install according to the docs, I didn't manage to setup harbor locally beacuse the db didn't start.
Problem description
The logs showed that the entrypoint gets permission denied when it calls the initdb.sh
Reproduce the problem
I built the the db as BULDTARGET, switched the entrypoint to a sleep and indeed initdb.sh is mounted as root not the postgres user.
Execing into the image:
The problem is that this script is not added to the chown-ed one in the Dockerfile.
I am curious how this didn't come up for others. I checked and the official image doesn't have this problem because initdb has execute permissions.
Same is true for upgrade.sh
I have a fairly old compose version: