mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-12 20:06:56 +01:00
19a13e8575
Use non-root user to run the service within these docker images, and provide HEALTHCHECK mechanism.
10 lines
210 B
Bash
10 lines
210 B
Bash
#!/bin/sh
|
|
if [ -d /etc/jobservice/ ]; then
|
|
chown -R 10000:10000 /etc/jobservice/
|
|
fi
|
|
if [ -d /var/log/jobs ]; then
|
|
chown -R 10000:10000 /var/log/jobs/
|
|
fi
|
|
sudo -E -u \#10000 "/harbor/harbor_jobservice"
|
|
|