Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/java/com/redhat/exhort/image/ImageUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ public static JsonNode generateImageSBOM(ImageRef imageRef)

static Operations.ProcessExecOutput execSyft(ImageRef imageRef) {
var syft = Operations.getExecutable(SYFT, ARG_VERSION);
var docker = Operations.getExecutable(DOCKER, ARG_VERSION);
var podman = Operations.getExecutable(PODMAN, ARG_VERSION);
var docker = Operations.getCustomPathOrElse(DOCKER);
var podman = Operations.getCustomPathOrElse(PODMAN);

var syftConfigPath = Environment.get(EXHORT_SYFT_CONFIG_PATH, "");
var imageSource = Environment.get(EXHORT_SYFT_IMAGE_SOURCE, "");
Expand Down Expand Up @@ -238,7 +238,7 @@ public static Platform getImagePlatform() {
}

static String hostInfo(String engine, String info) {
var exec = Operations.getExecutable(engine, ARG_VERSION);
var exec = Operations.getCustomPathOrElse(engine);
var cmd = new String[] {exec, "info"};

var output = Operations.runProcessGetFullOutput(null, cmd, null);
Expand Down
Loading