FROM dockerfile/java:oracle-java6 RUN curl -o elasticmq-server-0.8.5.jar https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-0.8.5.jar CMD java -jar elasticmq-server-0.8.5.jar EXPOSE 9324
sqs: image: pakohan/elasticmq ports: - "9324:9324"
Would be great if this Dockerfile accept the "-Dconfig.file=custom.conf". Otherwise we would need to fork yours...
Thanks, this is working well for us!
However, when using with docker-compose, it was taking a long time to shut down. If you change your
CMD line to be
CMD ["java", "-jar", "elasticmq-server-0.8.5.jar"] it will allow the signal from
docker stop to get through to the java process and it'll shut down rapidly.