Skip to content

Commit

Permalink
container-image-podman extension
Browse files Browse the repository at this point in the history
  • Loading branch information
edeandrea committed May 21, 2024
1 parent 11304e9 commit 5994156
Show file tree
Hide file tree
Showing 19 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import java.util.stream.Stream;

/**
* Can extract information from Dockerfile that uses {@code registry.access.redhat.com/ubi[89]/openjdk-$d-runtime:$d.$d} as the
* Can extract information from Dockerfile that uses {@code registry.access.redhat.com/ubi8/openjdk-$d-runtime:$d.$d} as the
* base image
*/
class RedHatOpenJDKRuntimeBaseProvider implements DockerFileBaseInformationProvider {
Expand All @@ -21,7 +21,7 @@ public Optional<DockerFileBaseInformation> determine(Path dockerFile) {
if (fromOpt.isPresent()) {
String fromLine = fromOpt.get();
String baseImage = fromLine.substring(4).trim();
Pattern pattern = Pattern.compile(".*ubi[89]/openjdk-(\\w+)-runtime.*");
Pattern pattern = Pattern.compile(".*ubi8/openjdk-(\\w+)-runtime.*");
Matcher matcher = pattern.matcher(baseImage);
if (matcher.find()) {
String match = matcher.group(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.util.stream.Stream;

/**
* Can extract information from Dockerfile that uses {@code registry.access.redhat.com/ubi[89]/ubi-minimal:$d.$d} as the
* Can extract information from Dockerfile that uses {@code registry.access.redhat.com/ubi8/ubi-minimal:$d.$d} as the
* base image
*/
class UbiMinimalBaseProvider implements DockerFileBaseInformationProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>quarkus-container-image-docker-common-parent</artifactId>
<name>Quarkus - Container Image - Docker - Common</name>
<name>Quarkus - Container Image - Docker Common - Parent</name>
<packaging>pom</packaging>
<modules>
<module>deployment</module>
<module>runtime</module>
<module>container-image-docker</module>
<module>container-image-podman</module>
</modules>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>

<artifactId>quarkus-container-image-docker-common</artifactId>
<name>Quarkus - Container Image - Docker Common - Runtime</name>
<name>Quarkus - Container Image - Docker Common</name>
<description>Build container images of your application using Docker APIs</description>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>quarkus-container-image-docker-common-parent</artifactId>
<artifactId>quarkus-container-image-parent</artifactId>
<groupId>io.quarkus</groupId>
<version>999-SNAPSHOT</version>
</parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>quarkus-container-image-docker-common-parent</artifactId>
<artifactId>quarkus-container-image-parent</artifactId>
<groupId>io.quarkus</groupId>
<version>999-SNAPSHOT</version>
</parent>
Expand Down
2 changes: 2 additions & 0 deletions extensions/container-image/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
<module>util</module>
<module>container-image-buildpack</module>
<module>container-image-docker-common</module>
<module>container-image-docker</module>
<module>container-image-podman</module>
<module>container-image-jib</module>
<module>container-image-openshift</module>
</modules>
Expand Down

0 comments on commit 5994156

Please sign in to comment.