1212import java .util .Arrays ;
1313import java .util .Objects ;
1414import java .util .Optional ;
15- import java .util .concurrent .Future ;
1615import java .util .stream .Stream ;
1716
1817public class JBossEapContainer extends GenericContainer <JBossEapContainer > {
@@ -22,7 +21,7 @@ public class JBossEapContainer extends GenericContainer<JBossEapContainer> {
2221
2322 // super("daggerok/jboss-eap-6.4:6.4.22-alpine");
2423 // using ../ui/Dockerfile file: docker build -t daggerok/test-image ../ui
25- private JBossEapContainer (Future < String > dockerfile ) { // <-- org.testcontainers.images.builder.ImageFromDockerfile
24+ private JBossEapContainer (ImageFromDockerfile dockerfile ) {
2625 super (dockerfile );
2726 withExposedPorts (JBOSS_PORT );
2827 waitingFor (new HttpWaitStrategy ().forPort (JBOSS_PORT )
@@ -35,7 +34,7 @@ public static JBossEapContainer withNet(Network network, String... aliases) {
3534 Objects .requireNonNull (network , "Network may not be null." );
3635 String rootProjectDir = Paths .get ("." ).toAbsolutePath ().toFile ().getParentFile ().getParent ();
3736 Path dockerfilePath = Paths .get (rootProjectDir , "ui" ); // $rootProjectDir/ui/Dockerfile
38- Future < String > dockerfile = new ImageFromDockerfile (IMAGE ).withFileFromPath ("." , dockerfilePath );
37+ ImageFromDockerfile dockerfile = new ImageFromDockerfile (IMAGE ).withFileFromPath ("." , dockerfilePath );
3938 return new JBossEapContainer (dockerfile ).withNetwork (network )
4039 .withNetworkAliases (
4140 Stream .concat (Arrays .stream (Optional .ofNullable (aliases )
0 commit comments