Do you need a small container to test Oracle connectivity with Java drivers?
TL;DR package Java drivers and class in a container, run it with environment variables
Here we go:
GitHub - robertdiers/oracle-java-testcontainer: Container to test Oracle connectivity with Java…
Container to test Oracle connectivity with Java JDBC drivers - GitHub - robertdiers/oracle-java-testcontainer…
1 Java class only and the possibility to run every query you like.
Want to use a different database?
Code is already prepared for it, just use different drivers in pom.xml :-) (and maybe rename the env variables)