Hi All,
Any help/suggestion is highly appreciated.
I have running rabbitmq on docker using docker compose. I have a bash script that creates user, vhosts, set permissions after the container starts. Now, I have the bash to be a part of rabbitmq startup script but could not get around as the moment. My dockerfile looks like
FROM rabbitmq:3.8.5-management-alpine
COPY scripts/ scripts/
RUN ls -l scripts/
RUN chmod +x scripts/setup.sh
ENTRYPOINT ["/bin/sh", "-c", " /usr/local/bin/docker-entrypoint.sh rabbitmq-server && scripts/setup.sh"]
My intention is to run the startup script after the entrypoint script completes. But when rabbitserver starts, the processing stops and the second part (setup.sh is ignored)
Thanks
Eswar