Skip to content

ContainerRequest - narayana-lra server #5051

Description

@GregJohnStewart

Hello! I hope this request is in the right place.

It would be great to have a TestContainer that spins up a narayana-lra server for testing LRA functionalities.

It appears that we would need to either create a barebones quarkus app to containerize to be the server, or use a standalone binary. Otherwise looks fairly straightforward:

https://jbossts.blogspot.com/2021/07/narayana-lra-update.html

https://narayana.io/downloads/index.html

Info on usage of Naraya:

https://jbossts.blogspot.com/2021/07/how-to-use-long-running-actions-between.html

https://quarkus.io/blog/using-lra/

Activity

  1. kiview commented on Feb 16, 2022

    @kiview
    Member

    Hey @GregJohnStewart, thanks for letting us know.

    I'd assume this should be straightforward if there would be a Docker image for a narayana-lra server, then it might also work with our GenericContainer and there is no necessity for a dedicated container module.

    What about this image?
    https://hub.docker.com/r/jbosstm/lra-coordinator

    This whole topic is outside of my expertise, so there is not much concrete I can advise on.

  2. GregJohnStewart commented on Feb 16, 2022

    @GregJohnStewart
    Author

    That container looks good to me, unfortunately I am also quite new to LRA, so I can't speak much to it either (I'm looking for the test container so I can play with it!)

    Outwardly it looks like a fairly simple service though

  3. kiview commented on Feb 16, 2022

    @kiview
    Member

    Given the sparse docs, you can try with the following GenericContainer (not tested):

    new GenericContainer<>("jbosstm/lra-coordinator")
      .withExposedPort(8080)
      .waitingFor(Wait.forLogMessage(".*started in.*\\s", 1))
  4. GregJohnStewart commented on Feb 21, 2022

    @GregJohnStewart
    Author

    Thanks! Seems to work well!

  5. kiview commented on Feb 22, 2022

    @kiview
    Member

    Cool, I will convert this into a GH Discussions Q&A (for hopefully better discoverability).

  6. locked and limited conversation to collaborators on Feb 22, 2022
  7. converted this issue into a discussion #5107 on Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions