Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
JIB Questions

Since you are using JIB, it seems a little magical how the container is built.

  • Is there a JIB configuration file which I can see/edit?
  • What is the dockerfile being used? Can I see it anywjere?
    Now all images are pointing to the following
    container-image:
    registry: conexus.tugraz.at
    group: campusonline
    Even if I change it to
    container-image:
    registry: nexus.uni-graz.at

JIB seems to automatically take my username as part of the container path and creates a container pointing to nexus.uni-graz.at/anandn/co-loc-*

I want it to point to nexus.uni-graz.at/co-loc-*
How do I do that?

  
  
Posted 2 years ago
Votes Newest

Answers 4


He Anand, auch hier die Frage, hat dir die Doku weitergeholfen?

  
  
Posted 2 years ago

So here fundamentally I have to use the quarkus.container-image.name in case I want to override the image name that you are providing by default. The other properties, like I said in the question before if i only change quarkus.container-image.registry-name, it is taking my username as the default, as the document says.
So I have to kind of hardcode the quarkus.container-image.name to include registry name, image name and tag name.
On a slightly different note, I still don't have a CI pipeline to build. If you have a sample gitlab CI Pipeline for me, that just runs
mvn clean install conx:package could you please share it.

  
  
Posted 2 years ago

for native image build

stages:
  - build
  - notify

variables:
  MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
  MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --no-transfer-progress --show-version -DdeployAtEnd=true"
  QUARKUS_JIB_BASE_REGISTRY_USERNAME: $DOCKER_USER
  QUARKUS_JIB_BASE_REGISTRY_PASSWORD: $DOCKER_PASSWORD
  QUARKUS_CONTAINER_IMAGE_USERNAME: $DOCKER_USER
  QUARKUS_CONTAINER_IMAGE_PASSWORD: $DOCKER_PASSWORD

cache:
  paths:
    - .m2/repository/

build:snapshot:
  image: dockr.swgt.at/quarkus/ubi-quarkus-native-image:21.3.2-java17
  stage: build
  variables:
    VERSION: $CI_COMMIT_SHORT_SHA
  only:
    - main
  tags:
    - ...
  script:
    #- ./mvnw versions:set -DnewVersion=$VERSION
    - ./mvnw $MAVEN_CLI_OPTS -Dbuild.revision=$VERSION prepare-package -DskipTests=true
    - ./mvnw $MAVEN_CLI_OPTS -Dbuild.revision=$VERSION at.campusonline.conx.maven:conx-maven-plugin:package package -DskipTests=true -P native
  artifacts:
    paths:
      - target/*.zip

build:production:
  image: dockr.swgt.at/quarkus/ubi-quarkus-native-image:21.3.2-java17
  stage: build
  variables:
    VERSION: $CI_COMMIT_REF_NAME
    COMMIT_ID: $CI_COMMIT_SHORT_SHA
  only:
    - /^(\d+\.)(\d+\.)(\d+)(-[a-z]+)?$/
  except:
    - branches
  tags:
    - ...
  script:
    - ./mvnw versions:set -DnewVersion=$VERSION
    - ./mvnw $MAVEN_CLI_OPTS -Dbuild.revision=$COMMIT_ID prepare-package -DskipTests=true
    - ./mvnw $MAVEN_CLI_OPTS -Dbuild.revision=$COMMIT_ID at.campusonline.conx.maven:conx-maven-plugin:package package -DskipTests=true -P native
  artifacts:
    paths:
      - target/*.zip
  when: manual
  
  
Posted 2 years ago
Lucas Reeh
108 × 4 Administrator
  
  

Watch out this is only example code. Change it to your needs and there is no deployment or integration testing.

Lucas Reeh   2 years ago Report

Take a look at https://quarkus.io/guides/container-image#quarkus-container-image_quarkus.container-image.group this should answer your question(s).

  
  
Posted 2 years ago
Lucas Reeh
108 × 4 Administrator
  
  

And i am sorry to tell you that base image provided by CAMPUSonline is currently closed source. Feel free to use your own.

Lucas Reeh   2 years ago Report
2K Views
4 Answers
2 years ago
2 years ago
Tags