pradeep85841 opened a new pull request, #1648:
URL: https://github.com/apache/activemq/pull/1648
### Summary
This PR modifies the Dockerfile to run the ActiveMQ container
as a dedicated non-root user, improving security and following
Docker best practices.
### Changes
- Added 'activemq' user and group
- Ensured all ActiveMQ directories are owned by this user
- Dropped root privileges before starting the broker
- Adjusted permissions of entrypoint script
### Testing
- Verified container starts successfully
- Verified ActiveMQ process runs as 'activemq' user:
```bash
docker exec -it <container> ps -ef | grep java
docker exec -it <container> whoami
docker exec -it <container_name_or_id> ls -l /usr/local/bin/entrypoint.sh
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact