I am using AWS SQS in my project. I want to use this for local setup. For SQS, I have added docker_local on my project.
I have updated Dockerfile
by adding this as suggested in the link.
FROM java:8
ADD https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-0.13.8.jar /
COPY custom.conf /
ENTRYPOINT ["/usr/bin/java", "-Dconfig.file=custom.conf", "-jar", "/elasticmq-server-0.13.8.jar"]
EXPOSE 9324
CMD ["-help"]
When I execute command docker ps
I get this on my screen:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
48e934fc6c43 mysql:5.7.16 "docker-entrypoint.s…" 24 minutes ago Up 24 minutes 0.0.0.0:10612->3306/tcp xyz_mysql_1
0af050bd3332 vsouza/sqs-local "/usr/bin/java -Dcon…" 2 hours ago Up 2 hours 0.0.0.0:9324->9324/tcp wizardly_yalow
I have added entry for sqs in my docker-compose.yml file too as:
sqs:
image: s12v/elasticmq
ports:
- "9324:9324".
Now I am unable to understand how to use SQS
in my console after going in shell of SQS
using this command sudo docker exec -it 0af050bd3332 sh
. When I try to list queue it is printing sh: 2: list-queues: not found
error.
I have tried lots of things but nothing seems to work.