Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1611

Enforce order of arguments passed to native-image in container builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.2.5.GA
    • None
    • team/eng
    • None
    • Hide
      1. mvn com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.5.Final-redhat-00005:create -DprojectGroupId=my-groupId -DprojectArtifactId=my-artifactId -DprojectVersion=my-version -Dmaven.repo.local=path_to_local_repo -DquarkusRegistryClient=false
        
        cd ./my-artifactId/
        
        mvn clean verify -Dmaven.repo.local=path_to_local_repo -Dnative -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime-options="-uroot:root"
        
      2. Search log for line
        docker run --env LANG=C --rm -uroot:root --user 1000:1000 ...
        
      Show
      mvn com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.5.Final-redhat-00005:create -DprojectGroupId=my-groupId -DprojectArtifactId=my-artifactId -DprojectVersion=my-version -Dmaven.repo. local =path_to_local_repo -DquarkusRegistryClient=false cd ./my-artifactId/ mvn clean verify -Dmaven.repo. local =path_to_local_repo -Dnative -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime-options= "-uroot:root" Search log for line docker run --env LANG=C --rm -uroot:root --user 1000:1000 ...

    Description

      Forces `quarkus.native.container-runtime-options` to come after the base
      arguments added by Quarkus to allow users to override the latter,
      e.g. to override the --user option.

      Closes: #17223

      Creating as draft since I would like to perform some more tests first.

      Attachments

        Activity

          People

            Unassigned Unassigned
            probinso_jira Quarkus JIRA Bot
            Josef Smrcka Josef Smrcka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: