Skip to content

Commit

Permalink
HSEARCH-4674 Don't remove TC images created from docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Oct 26, 2023
1 parent 177dd6e commit 579b208
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ private static class HibernateSearchJdbcDatabaseContainer

public HibernateSearchJdbcDatabaseContainer(Path dockerfile, String name, String driverClassName, String jdbcUrlPattern,
int port, String username, String password, String testQueryString) {
super( new ImageFromDockerfile( "hibernate-search-" + name, true ).withDockerfile( dockerfile ) );
// IMPORTANT: we do not want to delete the image on exit as then we cannot use container reuse.
// (these two options are somewhat mutually exclusive).
super( new ImageFromDockerfile( "hibernate-search-" + name, false ).withDockerfile( dockerfile ) );
this.driverClassName = driverClassName;
this.jdbcUrlPattern = jdbcUrlPattern;
this.port = port;
Expand Down

0 comments on commit 579b208

Please sign in to comment.