Skip to content

Commit

Permalink
fix: reset dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
bpereto committed May 6, 2024
1 parent 158b683 commit 72e9920
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 71 deletions.
60 changes: 0 additions & 60 deletions Dockerfile

This file was deleted.

36 changes: 25 additions & 11 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,28 @@ echo 'Starting Pulsar Manager Front end'
nginx

echo 'Starting Pulsar Manager Back end'
/pulsar-manager/pulsar-manager/bin/pulsar-manager \
--redirect.host=${REDIRECT_HOST} \
--redirect.port=${REDIRECT_PORT} \
--spring.datasource.driver-class-name=${DRIVER_CLASS_NAME} \
--spring.datasource.url=${URL} \
--spring.datasource.username=${USERNAME} \
--spring.datasource.password=${PASSWORD} \
--spring.datasource.initialization-mode=never \
--logging.level.org.apache=${LOG_LEVEL} \
--backend.jwt.token=${JWT_TOKEN}
--tls.enabled=${TLS:=false}

touch /pulsar-manager/supervisor.sock
chmod 777 /pulsar-manager/supervisor.sock


if [[ -n "$JWT_TOKEN" ]] && [[ -n "$PUBLIC_KEY" ]] && [[ -n "$PRIVATE_KEY" ]]
then
echo "Use public key and private key to init JWT."
supervisord -c /etc/supervisord-private-key.conf -n
elif [[ -n "$JWT_TOKEN" ]] && [[ -n "$SECRET_KEY" ]]
then
echo "Use secret key to init JWT."
supervisord -c /etc/supervisord-secret-key.conf -n
elif [[ -n "$JWT_TOKEN" ]]
then
echo "Enable JWT auth."
supervisord -c /etc/supervisord-token.conf -n
elif [[ -n "$SPRING_CONFIGURATION_FILE" ]]
then
echo "Start Pulsar Manager by specifying a configuration file."
supervisord -c /etc/supervisord-configuration-file.conf -n
else
echo "Start servie no enable JWT."
supervisord -c /etc/supervisord.conf -n
fi

0 comments on commit 72e9920

Please sign in to comment.