-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 #41477 from gsmet/3.12.1-backports-1
[3.12] 3.12.1 backports 1
- Loading branch information
Showing
70 changed files
with
1,475 additions
and
997 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Enable auto-env through the sdkman_auto_env config | ||
# Add key=value pairs of SDKs to use below | ||
java=17.0.10-tem | ||
mvnd=1.0-m8-m39 | ||
mvnd=1.0.0 |
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
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
public enum Builder { | ||
docker, | ||
podman, | ||
jib, | ||
buildpack, | ||
openshift | ||
|
37 changes: 37 additions & 0 deletions
37
devtools/cli/src/main/java/io/quarkus/cli/image/Podman.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,37 @@ | ||
package io.quarkus.cli.image; | ||
|
||
import java.util.Optional; | ||
|
||
import io.quarkus.cli.BuildToolContext; | ||
import picocli.CommandLine; | ||
|
||
@CommandLine.Command(name = "podman", sortOptions = false, showDefaultValues = true, mixinStandardHelpOptions = false, header = "Build a container image using Podman.", description = "%n" | ||
+ "This command will build or push a container image for the project, using Podman.", footer = "%n" | ||
+ "For example (using default values), it will create a container image using with REPOSITORY='${user.name}/<project.artifactId>' and TAG='<project.version>'.", headerHeading = "%n", commandListHeading = "%nCommands:%n", synopsisHeading = "%nUsage: ", parameterListHeading = "%n", optionListHeading = "Options:%n") | ||
public class Podman extends BaseImageSubCommand { | ||
|
||
private static final String PODMAN = "podman"; | ||
private static final String PODMAN_CONFIG_PREFIX = "quarkus.podman."; | ||
private static final String DOCKERFILE_JVM_PATH = "dockerfile-jvm-path"; | ||
private static final String DOCKERFILE_NATIVE_PATH = "dockerfile-native-path"; | ||
|
||
@CommandLine.Option(order = 7, names = { "--dockerfile" }, description = "The path to the Dockerfile.") | ||
public Optional<String> dockerFile; | ||
|
||
@Override | ||
public void populateContext(BuildToolContext context) { | ||
var properties = context.getPropertiesOptions().properties; | ||
properties.put(QUARKUS_CONTAINER_IMAGE_BUILDER, PODMAN); | ||
|
||
dockerFile.ifPresent(d -> properties.put( | ||
PODMAN_CONFIG_PREFIX + (context.getBuildOptions().buildNative ? DOCKERFILE_NATIVE_PATH : DOCKERFILE_JVM_PATH), | ||
d)); | ||
|
||
context.getForcedExtensions().add(QUARKUS_CONTAINER_IMAGE_EXTENSION_KEY_PREFIX + PODMAN); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Podman {imageOptions='" + imageOptions + "', dockerFile:'" + dockerFile.orElse("<none>") + "'}"; | ||
} | ||
} |
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
Oops, something went wrong.