-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from aguibert/ci-timeouts
Latest drop of improvements
- Loading branch information
Showing
13 changed files
with
166 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...n/resources/META-INF/services/org.eclipse.microprofile.system.test.ApplicationEnvironment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
org.eclipse.microprofile.system.test.ManuallyStartedConfiguration | ||
org.eclipse.microprofile.system.test.testcontainers.TestcontainersConfiguration | ||
org.eclipse.microprofile.system.test.testcontainers.HollowTestcontainersConfiguration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#* | ||
#!build/libs/basic-liberty.war | ||
#!src/main/liberty/config | ||
|
||
*~ | ||
[a-b-c] | ||
build/ | ||
target/ | ||
!target/*.war | ||
src/ | ||
!src/main/liberty/config |
35 changes: 35 additions & 0 deletions
35
...tainers/src/main/java/org/testcontainers/containers/microprofile/ImageFromDockerfile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.testcontainers.containers.microprofile; | ||
|
||
import java.nio.file.Path; | ||
import java.util.Optional; | ||
|
||
import com.github.dockerjava.api.command.BuildImageCmd; | ||
|
||
public class ImageFromDockerfile extends org.testcontainers.images.builder.ImageFromDockerfile { | ||
|
||
private Optional<Path> baseDir = Optional.empty(); | ||
|
||
public ImageFromDockerfile() { | ||
super(); | ||
} | ||
|
||
public ImageFromDockerfile(String dockerImageName) { | ||
super(dockerImageName); | ||
} | ||
|
||
public ImageFromDockerfile(String dockerImageName, boolean deleteOnExit) { | ||
super(dockerImageName, deleteOnExit); | ||
} | ||
|
||
@Override | ||
protected void configure(BuildImageCmd buildImageCmd) { | ||
baseDir.ifPresent(p -> buildImageCmd.withBaseDirectory(p.toFile())); | ||
super.configure(buildImageCmd); | ||
} | ||
|
||
public ImageFromDockerfile withBaseDirectory(Path baseDir) { | ||
this.baseDir = Optional.of(baseDir); | ||
return this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters