Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for JSON protocol #56

Open
michal-simon opened this issue Nov 13, 2023 · 5 comments
Open

Support for JSON protocol #56

michal-simon opened this issue Nov 13, 2023 · 5 comments

Comments

@michal-simon
Copy link

First of all, thank you for your great work on this project!

Recently AWS introduced support for JSON protocol for SQS. Unfortunately, this is a problem when upgrading AWS SDK because there is no way of switching between protocols. It would be nice to eventually support the JSON format as well.

Relevant links:

@mwillfox
Copy link

mwillfox commented May 1, 2024

So, I have confirmed that this image can support the JSON protocol. The biggest hurdle is that the newer versions of ElasticMQ expose a stats API on port 9325, which causes a port collision with sqs-insight. With that in mind, the port of sqs-insight (which hosts the web interface) needs to be changed to 9326. The image can support the JSON protocol after the following changes:

  1. Pin the ElasticMQ version in Dockerfile to the current version (v1.6.1).
  2. Update opt/sqs-insight.conf and ops/sqs-insight/config/config_local.json to specify port 9326.
  3. Build the docker image.

I can open a PR with the following changes, but it seems like maybe this repo isn't maintained anymore?

@mwillfox
Copy link

mwillfox commented May 2, 2024

I have opened a PR that updates the project to support the JSON protocol: Updated to support the ElasticMQ JSON protocol.

@michal-simon
Copy link
Author

Thank you @mwillfox, this is a fantastic upgrade! I hope it will be picked up soon so we can all leverage the new version. :)

@mwillfox
Copy link

mwillfox commented May 6, 2024

Looking at the other PRs and how long they've gone unmerged and needing to use these upgrades immediately, we've decided to maintain and host a version of alpine-sqs: https://hub.docker.com/r/amplifysecurity/alpine-sqs.

The intention of publishing our own fork on DockerHub is not to take over this project, however, we will continue to support alpine-sqs as long as this project is currently unmaintained. We are tagging the amplifysecurity/alpine-sqs image based on the pinned ElasticMQ version: currently latest points to 1.6.1. Hopefully this helps others in our situation that need to use the JSON protocol immediately.

@michal-simon
Copy link
Author

Thank you, I will test it as well in some of my projects as well. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants