|
186 | 186 | <quarkus.package.jar.enabled>false</quarkus.package.jar.enabled> |
187 | 187 | </properties> |
188 | 188 | </profile> |
189 | | - <profile> |
190 | | - <id>build-image-jvm</id> |
191 | | - <properties> |
192 | | - <docker.removeVolumes>true</docker.removeVolumes> |
193 | | - </properties> |
194 | | - <build> |
195 | | - <plugins> |
196 | | - <plugin> |
197 | | - <groupId>io.fabric8</groupId> |
198 | | - <artifactId>docker-maven-plugin</artifactId> |
199 | | - <version>${docker-maven-plugin.version}</version> |
200 | | - <executions> |
201 | | - <execution> |
202 | | - <id>build-image</id> |
203 | | - <phase>package</phase> |
204 | | - <goals> |
205 | | - <goal>stop</goal> |
206 | | - <goal>build</goal> |
207 | | - <goal>start</goal> |
208 | | - <goal>stop</goal> |
209 | | - </goals> |
210 | | - <configuration> |
211 | | - <containerNamePattern>%a</containerNamePattern> |
212 | | - <images> |
213 | | - <image> |
214 | | - <alias>ongres-jvm-builder</alias> |
215 | | - <name>ongres-jvm-builder</name> |
216 | | - <build> |
217 | | - <cleanup>remove</cleanup> |
218 | | - <from>${docker.image}</from> |
219 | | - <assembly> |
220 | | - <targetDir>/cluster-controller</targetDir> |
221 | | - <inline> |
222 | | - <fileSets> |
223 | | - <fileSet> |
224 | | - <directory>${project.basedir}</directory> |
225 | | - <outputDirectory>/</outputDirectory> |
226 | | - <excludes> |
227 | | - <exclude>target/docker/**</exclude> |
228 | | - </excludes> |
229 | | - </fileSet> |
230 | | - </fileSets> |
231 | | - </inline> |
232 | | - </assembly> |
233 | | - </build> |
234 | | - <run> |
235 | | - <privileged>true</privileged> |
236 | | - <workingDir>/</workingDir> |
237 | | - <entrypoint> |
238 | | - <arg>/bin/sh</arg> |
239 | | - <arg>-ex</arg> |
240 | | - <arg>/cluster-controller/src/main/docker/build-image-jvm.sh</arg> |
241 | | - </entrypoint> |
242 | | - <wait> |
243 | | - <time>300000</time> |
244 | | - <exit>0</exit> |
245 | | - </wait> |
246 | | - <log> |
247 | | - <prefix>image-builder|</prefix> |
248 | | - <date>default</date> |
249 | | - </log> |
250 | | - <env> |
251 | | - <CLUSTER_CONTROLLER_IMAGE_NAME>${env.CLUSTER_CONTROLLER_IMAGE_NAME}</CLUSTER_CONTROLLER_IMAGE_NAME> |
252 | | - <DOCKER_HOST>${env.DOCKER_HOST}</DOCKER_HOST> |
253 | | - </env> |
254 | | - <volumes> |
255 | | - <bind> |
256 | | - <volume>/var/lib/containers</volume> |
257 | | - <volume>/var/run/docker.sock:/var/run/docker.sock</volume> |
258 | | - </bind> |
259 | | - </volumes> |
260 | | - </run> |
261 | | - </image> |
262 | | - </images> |
263 | | - </configuration> |
264 | | - </execution> |
265 | | - </executions> |
266 | | - </plugin> |
267 | | - </plugins> |
268 | | - </build> |
269 | | - </profile> |
270 | | - <profile> |
271 | | - <id>build-image-native</id> |
272 | | - <properties> |
273 | | - <docker.removeVolumes>true</docker.removeVolumes> |
274 | | - </properties> |
275 | | - <build> |
276 | | - <plugins> |
277 | | - <plugin> |
278 | | - <groupId>io.fabric8</groupId> |
279 | | - <artifactId>docker-maven-plugin</artifactId> |
280 | | - <version>${docker-maven-plugin.version}</version> |
281 | | - <executions> |
282 | | - <execution> |
283 | | - <id>build-image</id> |
284 | | - <phase>package</phase> |
285 | | - <goals> |
286 | | - <goal>stop</goal> |
287 | | - <goal>build</goal> |
288 | | - <goal>start</goal> |
289 | | - <goal>stop</goal> |
290 | | - </goals> |
291 | | - <configuration> |
292 | | - <containerNamePattern>%a</containerNamePattern> |
293 | | - <images> |
294 | | - <image> |
295 | | - <alias>cluster-controller-native-builder</alias> |
296 | | - <name>cluster-controller-native-builder</name> |
297 | | - <build> |
298 | | - <cleanup>remove</cleanup> |
299 | | - <from>${docker.image}</from> |
300 | | - <assembly> |
301 | | - <targetDir>/cluster-controller</targetDir> |
302 | | - <inline> |
303 | | - <fileSets> |
304 | | - <fileSet> |
305 | | - <directory>${project.basedir}</directory> |
306 | | - <outputDirectory>/</outputDirectory> |
307 | | - <excludes> |
308 | | - <exclude>target/docker/**</exclude> |
309 | | - </excludes> |
310 | | - </fileSet> |
311 | | - </fileSets> |
312 | | - </inline> |
313 | | - </assembly> |
314 | | - </build> |
315 | | - <run> |
316 | | - <privileged>true</privileged> |
317 | | - <workingDir>/</workingDir> |
318 | | - <entrypoint> |
319 | | - <arg>/bin/sh</arg> |
320 | | - <arg>-ex</arg> |
321 | | - <arg>/cluster-controller/src/main/docker/build-image-native.sh</arg> |
322 | | - </entrypoint> |
323 | | - <wait> |
324 | | - <time>600000</time> |
325 | | - <exit>0</exit> |
326 | | - </wait> |
327 | | - <log> |
328 | | - <prefix>image-builder|</prefix> |
329 | | - <date>default</date> |
330 | | - </log> |
331 | | - <env> |
332 | | - <CLUSTER_CONTROLLER_IMAGE_NAME>${env.CLUSTER_CONTROLLER_IMAGE_NAME}</CLUSTER_CONTROLLER_IMAGE_NAME> |
333 | | - <DOCKER_HOST>${env.DOCKER_HOST}</DOCKER_HOST> |
334 | | - </env> |
335 | | - <volumes> |
336 | | - <bind> |
337 | | - <volume>/var/lib/containers</volume> |
338 | | - <volume>/var/run/docker.sock:/var/run/docker.sock</volume> |
339 | | - </bind> |
340 | | - </volumes> |
341 | | - </run> |
342 | | - </image> |
343 | | - </images> |
344 | | - </configuration> |
345 | | - </execution> |
346 | | - </executions> |
347 | | - </plugin> |
348 | | - </plugins> |
349 | | - </build> |
350 | | - </profile> |
351 | | - <profile> |
352 | | - <id>kind-load-image-jvm</id> |
353 | | - <build> |
354 | | - <plugins> |
355 | | - <plugin> |
356 | | - <groupId>io.fabric8</groupId> |
357 | | - <artifactId>docker-maven-plugin</artifactId> |
358 | | - <version>${docker-maven-plugin.version}</version> |
359 | | - <executions> |
360 | | - <execution> |
361 | | - <id>kind-load-image</id> |
362 | | - <phase>package</phase> |
363 | | - <goals> |
364 | | - <goal>stop</goal> |
365 | | - <goal>start</goal> |
366 | | - <goal>stop</goal> |
367 | | - </goals> |
368 | | - <configuration> |
369 | | - <containerNamePattern>%a</containerNamePattern> |
370 | | - <images> |
371 | | - <image> |
372 | | - <alias>kind-load</alias> |
373 | | - <name>${ci.image}</name> |
374 | | - <run> |
375 | | - <entrypoint> |
376 | | - <arg>/bin/sh</arg> |
377 | | - <arg>-exc</arg> |
378 | | - <arg> |
379 | | - CLUSTER_CONTROLLER_IMAGE_NAME="${CLUSTER_CONTROLLER_IMAGE_NAME:-"stackgres/cluster-controller:main-jvm"}" |
380 | | - CONTAINER_NAME="$(docker inspect -f '{{.Name}}' "$(hostname)"|cut -d '/' -f 2|sed 's/^kind-load/kind/')" |
381 | | - kind load docker-image --name "$CONTAINER_NAME" "$CLUSTER_CONTROLLER_IMAGE_NAME" || true |
382 | | - </arg> |
383 | | - </entrypoint> |
384 | | - <wait> |
385 | | - <time>300000</time> |
386 | | - <exit>0</exit> |
387 | | - </wait> |
388 | | - <log> |
389 | | - <prefix>kind-load|</prefix> |
390 | | - <date>default</date> |
391 | | - </log> |
392 | | - <env> |
393 | | - <CLUSTER_CONTROLLER_IMAGE_NAME>${env.CLUSTER_CONTROLLER_IMAGE_NAME}</CLUSTER_CONTROLLER_IMAGE_NAME> |
394 | | - <DOCKER_HOST>${env.DOCKER_HOST}</DOCKER_HOST> |
395 | | - </env> |
396 | | - <volumes> |
397 | | - <bind> |
398 | | - <volume>/var/run/docker.sock:/var/run/docker.sock</volume> |
399 | | - <volume>/var/lib/docker:/var/lib/docker:ro</volume> |
400 | | - </bind> |
401 | | - </volumes> |
402 | | - </run> |
403 | | - </image> |
404 | | - </images> |
405 | | - </configuration> |
406 | | - </execution> |
407 | | - </executions> |
408 | | - </plugin> |
409 | | - </plugins> |
410 | | - </build> |
411 | | - </profile> |
412 | | - <profile> |
413 | | - <id>kind-load-image-native</id> |
414 | | - <build> |
415 | | - <plugins> |
416 | | - <plugin> |
417 | | - <groupId>io.fabric8</groupId> |
418 | | - <artifactId>docker-maven-plugin</artifactId> |
419 | | - <version>${docker-maven-plugin.version}</version> |
420 | | - <executions> |
421 | | - <execution> |
422 | | - <id>kind-load-image</id> |
423 | | - <phase>package</phase> |
424 | | - <goals> |
425 | | - <goal>stop</goal> |
426 | | - <goal>start</goal> |
427 | | - <goal>stop</goal> |
428 | | - </goals> |
429 | | - <configuration> |
430 | | - <containerNamePattern>%a</containerNamePattern> |
431 | | - <images> |
432 | | - <image> |
433 | | - <alias>kind-load</alias> |
434 | | - <name>${ci.image}</name> |
435 | | - <run> |
436 | | - <entrypoint> |
437 | | - <arg>/bin/sh</arg> |
438 | | - <arg>-exc</arg> |
439 | | - <arg> |
440 | | - CLUSTER_CONTROLLER_IMAGE_NAME="${CLUSTER_CONTROLLER_IMAGE_NAME:-"stackgres/cluster-controller:main"}" |
441 | | - CONTAINER_NAME="$(docker inspect -f '{{.Name}}' "$(hostname)"|cut -d '/' -f 2|sed 's/^kind-load/kind/')" |
442 | | - kind load docker-image --name "$CONTAINER_NAME" "$CLUSTER_CONTROLLER_IMAGE_NAME" || true |
443 | | - </arg> |
444 | | - </entrypoint> |
445 | | - <wait> |
446 | | - <time>300000</time> |
447 | | - <exit>0</exit> |
448 | | - </wait> |
449 | | - <log> |
450 | | - <prefix>kind-load|</prefix> |
451 | | - <date>default</date> |
452 | | - </log> |
453 | | - <env> |
454 | | - <CLUSTER_CONTROLLER_IMAGE_NAME>${env.CLUSTER_CONTROLLER_IMAGE_NAME}</CLUSTER_CONTROLLER_IMAGE_NAME> |
455 | | - <DOCKER_HOST>${env.DOCKER_HOST}</DOCKER_HOST> |
456 | | - </env> |
457 | | - <volumes> |
458 | | - <bind> |
459 | | - <volume>/var/run/docker.sock:/var/run/docker.sock</volume> |
460 | | - <volume>/var/lib/docker:/var/lib/docker:ro</volume> |
461 | | - </bind> |
462 | | - </volumes> |
463 | | - </run> |
464 | | - </image> |
465 | | - </images> |
466 | | - </configuration> |
467 | | - </execution> |
468 | | - </executions> |
469 | | - </plugin> |
470 | | - </plugins> |
471 | | - </build> |
472 | | - </profile> |
473 | 189 | </profiles> |
474 | 190 | </project> |
0 commit comments