-
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 #25344 from gsmet/2.9.0-backports-1
2.9.0 backports 1
- Loading branch information
Showing
132 changed files
with
1,907 additions
and
338 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
13 changes: 13 additions & 0 deletions
13
core/deployment/src/main/java/io/quarkus/deployment/DockerStatusProcessor.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,13 @@ | ||
package io.quarkus.deployment; | ||
|
||
import io.quarkus.deployment.annotations.BuildStep; | ||
import io.quarkus.deployment.builditem.DockerStatusBuildItem; | ||
import io.quarkus.deployment.builditem.LaunchModeBuildItem; | ||
|
||
public class DockerStatusProcessor { | ||
|
||
@BuildStep | ||
DockerStatusBuildItem IsDockerWorking(LaunchModeBuildItem launchMode) { | ||
return new DockerStatusBuildItem(new IsDockerWorking(launchMode.getLaunchMode().isDevOrTest())); | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
core/deployment/src/main/java/io/quarkus/deployment/builditem/DockerStatusBuildItem.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,21 @@ | ||
package io.quarkus.deployment.builditem; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
import io.quarkus.deployment.IsDockerWorking; | ||
|
||
public final class DockerStatusBuildItem extends SimpleBuildItem { | ||
|
||
private final IsDockerWorking isDockerWorking; | ||
private Boolean cachedStatus; | ||
|
||
public DockerStatusBuildItem(IsDockerWorking isDockerWorking) { | ||
this.isDockerWorking = isDockerWorking; | ||
} | ||
|
||
public synchronized boolean isDockerAvailable() { | ||
if (cachedStatus == null) { | ||
cachedStatus = isDockerWorking.getAsBoolean(); | ||
} | ||
return cachedStatus; | ||
} | ||
} |
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.