You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:summary: Learn how to build and push container images with Jib, S2I or Docker as part of the Quarkus build.
9
+
:summary: Learn how to build and push container images with Jib, OpenShift or Docker as part of the Quarkus build.
10
10
11
11
Quarkus provides extensions for building (and pushing) container images. Currently, it supports:
12
12
13
13
- <<#jib,Jib>>
14
14
- <<#docker,Docker>>
15
-
- <<#s2i,S2I>>
15
+
- <<#openshift,OpenShift>>
16
16
- <<#buildpack,Buildpack>>
17
17
18
18
== Container Image extensions
@@ -118,20 +118,20 @@ The `quarkus-container-image-docker` extension is capable of https://docs.docker
118
118
119
119
NOTE: `docker buildx build` ONLY supports https://docs.docker.com/engine/reference/commandline/buildx_build/#load[loading the result of a build] to `docker images` when building for a single platform. Therefore, if you specify more than one argument in the `quarkus.docker.buildx.platform` property, the resulting images will not be loaded into `docker images`. If `quarkus.docker.buildx.platform` is omitted or if only a single platform is specified, it will then be loaded into `docker images`.
120
120
121
-
[#s2i]
122
-
=== S2I
121
+
[#openshift]
122
+
=== OpenShift
123
123
124
-
The extension `quarkus-container-image-s2i` is using S2I binary builds in order to perform container builds inside the OpenShift cluster.
124
+
The extension `quarkus-container-image-openshift` is using OpenShift binary builds in order to perform container builds inside the OpenShift cluster.
125
125
The idea behind the binary build is that you just upload the artifact and its dependencies to the cluster and during the build they will be merged to a builder image (defaults to `fabric8/s2i-java`).
126
126
127
127
The benefit of this approach, is that it can be combined with OpenShift's `DeploymentConfig` that makes it easy to roll out changes to the cluster.
128
128
129
129
To use this feature, add the following extension to your project.
S2I builds require creating a `BuildConfig` and two `ImageStream` resources, one for the builder image and one for the output image.
134
+
OpenShift builds require creating a `BuildConfig` and two `ImageStream` resources, one for the builder image and one for the output image.
135
135
The creation of such objects is being taken care of by the Quarkus Kubernetes extension.
136
136
137
137
@@ -202,7 +202,7 @@ NOTE: If no registry is set (using `quarkus.container-image.registry`) then `doc
202
202
203
203
It does not make sense to use multiple extension as part of the same build. When multiple container image extensions are present, an error will be raised to inform the user. The user can either remove the unneeded extensions or select one using `application.properties`.
204
204
205
-
For example, if both `container-image-docker` and `container-image-s2i` are present and the user needs to use `container-image-docker`:
205
+
For example, if both `container-image-docker` and `container-image-openshift` are present and the user needs to use `container-image-docker`:
206
206
207
207
[source,properties]
208
208
----
@@ -253,8 +253,8 @@ In addition to the generic container image options, the `container-image-docker`
0 commit comments