-
Notifications
You must be signed in to change notification settings - Fork 429

Description
Hi ,
i am combining RabbitMQ and one custom Web App in single docker image.
so i am planning to run the docker-entrypoint.sh which will run two other .sh files.
i am getting below error when docker-entrypoint.sh calls the rabbitmq-start.sh :
(i am using official rabbitmq's docker-entrypoint.sh content in the rabbitmq-start.sh)
root@ubuntu-docker-xxxx-2:~/platform/rabbitmq-with-webapp# docker logs test-app
/usr/local/bin/rabbitmq-start.sh: line 5: $1: unbound variable
rabbitmq-start.sh content :
!/bin/bash
set -eu
(allow the container to be started with --user
)
if [[ "$1" == rabbitmq* ]] && [ "$(id -u)" = '0' ]; then
if [ "$1" = 'rabbitmq-server' ]; then
chown -R rabbitmq /var/lib/rabbitmq
fi
exec gosu rabbitmq "$BASH_SOURCE" "$@"
fi
( backwards compatibility for old environment variables)
: "${RABBITMQ_SSL_CERTFILE:=${RABBITMQ_SSL_CERT_FILE:-}}"
: "${RABBITMQ_SSL_KEYFILE:=${RABBITMQ_SSL_KEY_FILE:-}}"
: "${RABBITMQ_SSL_CACERTFILE:=${RABBITMQ_SSL_CA_FILE:-}}"
....