Jkube: Assembly inline files and filesets ignored by kubernetes-maven-plugin

Created on 8 Aug 2020  路  1Comment  路  Source: eclipse/jkube

Description

Info

  • Eclipse JKube version : 1.0.0-rc-1
  • Maven version (mvn -v) : Apache Maven 3.6.0

  • Kubernetes / Red Hat OpenShift setup and version : minikube version: v1.11.0

  • If it's a bug, how to reproduce :
    Adding Assembly files or fileSets to pom.xml when using Dockerfile and contextDir has no effect. All files specified are ignored. Only the directories and files of the contextDir are copied into target/docker/${container-name}/${container-tag}/build/${assembly-name}.

The result is that the following does not contain any files specified in the assembly:

  1. target/docker/${container-name}/${container-tag}/tmp/docker-build.tar
  2. target/docker/${container-name}/${container-tag}/build/${assembly-name}
  • Sample Reproducer Project :

    • Please refer to the modified quickstarts/maven/dockfile-provided project located here;

    • Execute using mvn clean package -e -X k8s:build -Pcontext-and-assembly

bug

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings