Skip to content

Commit

Permalink
HSEARCH-4674 Add ryuk back
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Oct 24, 2023
1 parent b5e3d6e commit 75cd843
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions build/container/ryuk.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CockroachDB
# See https://hub.docker.com/r/testcontainers/ryuk/tags
FROM testcontainers/ryuk:0.5.1
3 changes: 0 additions & 3 deletions build/parents/build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1192,9 +1192,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<environmentVariables>
<TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
</environmentVariables>
<systemPropertyVariables>
<org.hibernate.search.version>${project.version}</org.hibernate.search.version>
<org.hibernate.search.enable_performance_tests>${test.performance.enable}</org.hibernate.search.enable_performance_tests>
Expand Down
16 changes: 11 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -953,13 +953,19 @@
def images = []
def isTrueString = { string -> string && Boolean.parseBoolean( string ) }
def isNotBlankString = { string -> string?.trim() }
def parseImage = { file ->
{
def dockerFileContent = new File(file).text
if ((match = dockerFileContent =~ /FROM (.+)/)) {
return match.group(1).trim()
}
return ''
}
}
images += parseImage( './build/container/ryuk.Dockerfile' )
if ( isNotBlankString( '${test.database.run.kind}' ) && '${test.database.run.kind}' != 'h2') {
def dockerFileContent = new File('./build/container/${test.database.run.kind}.Dockerfile').text
if ((match = dockerFileContent =~ /FROM (.+)/)) {
def image = match.group(1).trim()
images += image
}
images += parseImage( './build/container/${test.database.run.kind}.Dockerfile' )
}
if ( isTrueString( '${test.searchengine.run.image.pull}' ) && isNotBlankString( '${test.searchengine.run.image.name}' ) ) {
images += '${test.searchengine.run.image.name}:${test.searchengine.run.image.tag}'
Expand Down

0 comments on commit 75cd843

Please sign in to comment.