You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "mtafer (via GitHub)" <gi...@apache.org> on 2023/03/08 16:54:38 UTC
[GitHub] [pulsar-manager] mtafer opened a new issue, #508: Image in root user only when using local postgre db
mtafer opened a new issue, #508:
URL: https://github.com/apache/pulsar-manager/issues/508
Entry point requires root user, however, I prefer not using root user to start this image in our Kubernetes cluster
Affected lines in entrypoint script
>>>>>>>>>>
if [[ "$URL" = "jdbc:postgresql://127.0.0.1:5432/pulsar_manager" ]]
then
echo 'Starting PostGreSQL Server'
addgroup pulsar
adduser --disabled-password --ingroup pulsar pulsar
mkdir -p /run/postgresql
chown -R pulsar:pulsar /run/postgresql/
mkdir -p /data
chown -R pulsar:pulsar /data
chown pulsar:pulsar /pulsar-manager/init_db.sql
chmod 750 /data
su - pulsar -s /bin/sh /pulsar-manager/startup.sh
fi
>>>>>>>>>>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org