Add testcontainers support in the Remote adapter
See original GitHub issueTestContainers^1 becomes popular in these days.
When deploying to a running server using remote adapter, we have to prepare a server for it. Nowdays most of the application can be running in docker container.
Add support to combine @TestsContainers
and @Container
, and Arquillian @Deployment
, and make sure application server is started and ready for remote deployment.
Issue Analytics
- State:
- Created a year ago
- Comments:23 (12 by maintainers)
Top Results From Across the Web
Custom configuration - Testcontainers for Java
Customizing images Testcontainers uses public Docker images to perform different actions like startup checks, VNC recording and others. Some companies disallow ...
Read more >Can't connect to Ryuk container when using remote Docker host
Testcontainers used External Docker API for connection to moby-ryuk (172.17.0.1 in my case). Ports were closed and I couldn't connect to it. But ......
Read more >Play with Testcontainers - Medium
Testcontainers is a Java 8 library that supports JUnit tests, providing lightweight, ... You just have to add the adapter you need.
Read more >Using Testcontainers in Spring Boot Tests For Database ...
We have two methods, one for adding a hero into the database and one for getting all ... Testcontainers can also provide support...
Read more >How can i use testcontainer in mac os with out Docker Desktop?
No need for a local Docker installation anymore. – rieckpil. Jan 18 at 7:50. Add a comment ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kiview Yeah, all Jakarta EE compatible application server, such as Payara, WildFly, Open Liberty provide docker images.
When using a remote adapter, we have to prepare a running application server before running the tests. The test itself will package the test classes(defined by
@Deployment
) into an archive(jar or war, ear) and deploy into the running server, then run the test against the deployed test application.What we want is simplify the progress, and let testcontainers to prepare the running server(and maybe other dependent services, such as database, redis, mq broker, etc).
Currently if we use
@Testcontainers/@Container
and Arquillian@Deployment
, Arquillian engine do not know the existence of testcontainers container.I’d also be happy to chime in if any input or advice from the Testcontainers side of things is helpful 🙂 Do I understand it correctly that the integration of Arquillian with Testcontainers would allow doing
@SpringBootTest
style in-process transparent-box tests for Jakarta applications? In the past, I only used Jakarta in conjunction with Testcontainers for out-of-process opaque-box testing, where the Jakarta app itself is launched as a container.