Is specifying ryuk from classpath supported ? #9344
Unanswered
rajjaiswalsaumya
asked this question in
Q&A
Replies: 1 comment
-
Hi, the name should be |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to upgrade to the latest spring boot, and we are upgrading test containers. Unfortunately, the latest test containers requirs a recent version of the Ryuk container. Since we don't allow docker to be downloaded from outside organizations, I created a clone of the docker image of Ryuk in the docker hub. Now, I am trying to specify the image name from the local testcontainer.properties file in the project test classpath since others require an old version of the Ryuk image.
Unfortunately, this does not work. The configuration is imported via
@TestPropertySource(value = {"classpath:/testcontainers.properties"})
Contents of src/test/resources/testcontainer.properties
Contents of ~/.testcontainer.properties
I want to download
0.7.0
version in my project test and not0.2.3
. What is the best way I can achieve this?I can see and feel the code for TestcontainersConfiguration.java#getConfigurable requires slight modification. It is currently not overriding the property defined late in the order.
E.g. if a classpath properties is present and the same is in user home, it is using user home property and not the one present in classpath. This is weird behavior. Ideally override should happen in given order by testcontainers.
Beta Was this translation helpful? Give feedback.
All reactions