Skip to content
Snippets Groups Projects
Commit 9d812115 authored by Sören Henning's avatar Sören Henning
Browse files

Build native images

parent 1384573c
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!94Build native images in CI pipeline,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
Checking pipeline status
...@@ -176,7 +176,8 @@ deploy-uc4-load-generator: ...@@ -176,7 +176,8 @@ deploy-uc4-load-generator:
# Theodolite Framework # Theodolite Framework
.theodolite: .theodolite:
image: openjdk:11-jdk #image: openjdk:11-jdk
image: ghcr.io/graalvm/graalvm-ce:java11-21.0.0.2
tags: tags:
- exec-docker - exec-docker
variables: variables:
...@@ -192,8 +193,8 @@ deploy-uc4-load-generator: ...@@ -192,8 +193,8 @@ deploy-uc4-load-generator:
build-theodolite: build-theodolite:
stage: build stage: build
extends: .theodolite extends: .theodolite
# script: ./gradlew --build-cache assemble -Dquarkus.package.type=native script: ./gradlew --build-cache assemble -Dquarkus.package.type=native
script: ./gradlew --build-cache assemble # script: ./gradlew --build-cache assemble
artifacts: artifacts:
paths: paths:
- "theodolite-quarkus/build/lib/*" - "theodolite-quarkus/build/lib/*"
...@@ -236,8 +237,8 @@ deploy-theodolite: ...@@ -236,8 +237,8 @@ deploy-theodolite:
- test-theodolite - test-theodolite
script: script:
- DOCKER_TAG_NAME=$(echo $CI_COMMIT_REF_SLUG- | sed 's/^master-$//') - DOCKER_TAG_NAME=$(echo $CI_COMMIT_REF_SLUG- | sed 's/^master-$//')
#- docker build -f src/main/docker/Dockerfile.native -t theodolite . - docker build -f src/main/docker/Dockerfile.native -t theodolite .
- docker build -f src/main/docker/Dockerfile.jvm -t theodolite . #- docker build -f src/main/docker/Dockerfile.jvm -t theodolite .
- "[ ! $CI_COMMIT_TAG ] && docker tag theodolite $CR_HOST/$CR_ORG/theodolite:${DOCKER_TAG_NAME}latest" - "[ ! $CI_COMMIT_TAG ] && docker tag theodolite $CR_HOST/$CR_ORG/theodolite:${DOCKER_TAG_NAME}latest"
- "[ ! $CI_COMMIT_TAG ] && docker tag theodolite $CR_HOST/$CR_ORG/theodolite:$DOCKER_TAG_NAME$CI_COMMIT_SHORT_SHA" - "[ ! $CI_COMMIT_TAG ] && docker tag theodolite $CR_HOST/$CR_ORG/theodolite:$DOCKER_TAG_NAME$CI_COMMIT_SHORT_SHA"
- "[ $CI_COMMIT_TAG ] && docker tag theodolite $CR_HOST/$CR_ORG/theodolite:$CI_COMMIT_TAG" - "[ $CI_COMMIT_TAG ] && docker tag theodolite $CR_HOST/$CR_ORG/theodolite:$CI_COMMIT_TAG"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment