|
128 | 128 | <profile> |
129 | 129 | <id>safer</id> |
130 | 130 | </profile> |
131 | | - <profile> |
132 | | - <id>native</id> |
133 | | - <activation> |
134 | | - <property> |
135 | | - <name>native</name> |
136 | | - </property> |
137 | | - </activation> |
138 | | - <build> |
139 | | - <plugins> |
140 | | - <plugin> |
141 | | - <artifactId>maven-failsafe-plugin</artifactId> |
142 | | - <version>${surefire-plugin.version}</version> |
143 | | - <executions> |
144 | | - <execution> |
145 | | - <goals> |
146 | | - <goal>integration-test</goal> |
147 | | - <goal>verify</goal> |
148 | | - </goals> |
149 | | - <configuration> |
150 | | - <systemPropertyVariables> |
151 | | - <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path> |
152 | | - <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager> |
153 | | - <maven.home>${maven.home}</maven.home> |
154 | | - </systemPropertyVariables> |
155 | | - </configuration> |
156 | | - </execution> |
157 | | - </executions> |
158 | | - </plugin> |
159 | | - </plugins> |
160 | | - </build> |
161 | | - <properties> |
162 | | - <quarkus.native.enabled>true</quarkus.native.enabled> |
163 | | - <quarkus.package.jar.enabled>false</quarkus.package.jar.enabled> |
164 | | - </properties> |
165 | | - </profile> |
166 | 131 | <profile> |
167 | 132 | <id>build-image-jvm</id> |
168 | 133 | <properties> |
|
244 | 209 | </plugins> |
245 | 210 | </build> |
246 | 211 | </profile> |
247 | | - <profile> |
248 | | - <id>build-image-native</id> |
249 | | - <properties> |
250 | | - <docker.removeVolumes>true</docker.removeVolumes> |
251 | | - </properties> |
252 | | - <build> |
253 | | - <plugins> |
254 | | - <plugin> |
255 | | - <groupId>io.fabric8</groupId> |
256 | | - <artifactId>docker-maven-plugin</artifactId> |
257 | | - <version>${docker-maven-plugin.version}</version> |
258 | | - <executions> |
259 | | - <execution> |
260 | | - <id>build-image</id> |
261 | | - <phase>package</phase> |
262 | | - <goals> |
263 | | - <goal>stop</goal> |
264 | | - <goal>build</goal> |
265 | | - <goal>start</goal> |
266 | | - <goal>stop</goal> |
267 | | - </goals> |
268 | | - <configuration> |
269 | | - <containerNamePattern>%a</containerNamePattern> |
270 | | - <images> |
271 | | - <image> |
272 | | - <alias>jobs-native-builder</alias> |
273 | | - <name>jobs-native-builder</name> |
274 | | - <build> |
275 | | - <cleanup>remove</cleanup> |
276 | | - <from>${docker.image}</from> |
277 | | - <assembly> |
278 | | - <targetDir>/jobs</targetDir> |
279 | | - <inline> |
280 | | - <fileSets> |
281 | | - <fileSet> |
282 | | - <directory>${project.basedir}</directory> |
283 | | - <outputDirectory>/</outputDirectory> |
284 | | - <excludes> |
285 | | - <exclude>target/docker/**</exclude> |
286 | | - </excludes> |
287 | | - </fileSet> |
288 | | - </fileSets> |
289 | | - </inline> |
290 | | - </assembly> |
291 | | - </build> |
292 | | - <run> |
293 | | - <privileged>true</privileged> |
294 | | - <workingDir>/</workingDir> |
295 | | - <entrypoint> |
296 | | - <arg>/bin/sh</arg> |
297 | | - <arg>-ex</arg> |
298 | | - <arg>/jobs/src/main/docker/build-image-native.sh</arg> |
299 | | - </entrypoint> |
300 | | - <wait> |
301 | | - <time>600000</time> |
302 | | - <exit>0</exit> |
303 | | - </wait> |
304 | | - <log> |
305 | | - <prefix>image-builder|</prefix> |
306 | | - <date>default</date> |
307 | | - </log> |
308 | | - <env> |
309 | | - <JOBS_IMAGE_NAME>${env.JOBS_IMAGE_NAME}</JOBS_IMAGE_NAME> |
310 | | - <DOCKER_HOST>${env.DOCKER_HOST}</DOCKER_HOST> |
311 | | - </env> |
312 | | - <volumes> |
313 | | - <bind> |
314 | | - <volume>/var/lib/containers</volume> |
315 | | - <volume>/var/run/docker.sock:/var/run/docker.sock</volume> |
316 | | - </bind> |
317 | | - </volumes> |
318 | | - </run> |
319 | | - </image> |
320 | | - </images> |
321 | | - </configuration> |
322 | | - </execution> |
323 | | - </executions> |
324 | | - </plugin> |
325 | | - </plugins> |
326 | | - </build> |
327 | | - </profile> |
328 | 212 | <profile> |
329 | 213 | <id>kind-load-image-jvm</id> |
330 | 214 | <build> |
|
390 | 274 | </plugins> |
391 | 275 | </build> |
392 | 276 | </profile> |
393 | | - <profile> |
394 | | - <id>kind-load-image-native</id> |
395 | | - <build> |
396 | | - <plugins> |
397 | | - <plugin> |
398 | | - <groupId>io.fabric8</groupId> |
399 | | - <artifactId>docker-maven-plugin</artifactId> |
400 | | - <version>${docker-maven-plugin.version}</version> |
401 | | - <executions> |
402 | | - <execution> |
403 | | - <id>kind-load-image</id> |
404 | | - <phase>package</phase> |
405 | | - <goals> |
406 | | - <goal>stop</goal> |
407 | | - <goal>start</goal> |
408 | | - <goal>stop</goal> |
409 | | - </goals> |
410 | | - <configuration> |
411 | | - <containerNamePattern>%a</containerNamePattern> |
412 | | - <images> |
413 | | - <image> |
414 | | - <alias>kind-load</alias> |
415 | | - <name>${ci.image}</name> |
416 | | - <run> |
417 | | - <entrypoint> |
418 | | - <arg>/bin/sh</arg> |
419 | | - <arg>-exc</arg> |
420 | | - <arg> |
421 | | - JOBS_IMAGE_NAME="${JOBS_IMAGE_NAME:-"stackgres/stream:main"}" |
422 | | - CONTAINER_NAME="$(docker inspect -f |
423 | | - '{{.Name}}' |
424 | | - "$(hostname)"|cut -d '/' -f 2|sed 's/^kind-load/kind/')" |
425 | | - kind load docker-image --name |
426 | | - "$CONTAINER_NAME" |
427 | | - "$JOBS_IMAGE_NAME" || true |
428 | | - </arg> |
429 | | - </entrypoint> |
430 | | - <wait> |
431 | | - <time>300000</time> |
432 | | - <exit>0</exit> |
433 | | - </wait> |
434 | | - <log> |
435 | | - <prefix>kind-load|</prefix> |
436 | | - <date>default</date> |
437 | | - </log> |
438 | | - <env> |
439 | | - <JOBS_IMAGE_NAME>${env.JOBS_IMAGE_NAME}</JOBS_IMAGE_NAME> |
440 | | - <DOCKER_HOST>${env.DOCKER_HOST}</DOCKER_HOST> |
441 | | - </env> |
442 | | - <volumes> |
443 | | - <bind> |
444 | | - <volume>/var/run/docker.sock:/var/run/docker.sock</volume> |
445 | | - <volume>/var/lib/docker:/var/lib/docker:ro</volume> |
446 | | - </bind> |
447 | | - </volumes> |
448 | | - </run> |
449 | | - </image> |
450 | | - </images> |
451 | | - </configuration> |
452 | | - </execution> |
453 | | - </executions> |
454 | | - </plugin> |
455 | | - </plugins> |
456 | | - </build> |
457 | | - </profile> |
458 | 277 | </profiles> |
459 | 278 |
|
460 | 279 | </project> |
0 commit comments