lahsivjar / stomp-test-docker-image

Docker image for stomp with sockjs to be used for e2e testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stomp-test-docker-image

The project provides a basic springboot project which exposes an endpoint for STOMP protocol with SockJS.

What it provides?

  • STOMP endpoint with sockjs at /handler
  • Health check endpoint at /health
  • A ping pong message controller with text response. When a message is sent to /app/text/ping topic then it responsds with a text pong on /topic/ping topic
  • A ping pong message controller with json response. When a message is sent to /app/json/ping topic then it responds with a pong on /topic/ping topic in the following format:
    {
      "msg": "pong"
    }
    
  • An error endpoint. Sending a message on this endpoint at /app/err returns an ERROR STOMP frame which will also terminate the connection

How to build?

  • Use mvn install to build the project
  • Use mvn dockerfile:build -Ddocker.image.prefix=<image_prefix> for building the docker image

How to run?

docker run -p <exposed_port>:8080 <image_prefix>/stomp-test-docker-image

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Docker image for stomp with sockjs to be used for e2e testing

License:MIT License


Languages

Language:Java 95.3%Language:Dockerfile 4.7%