jkube: k8s:build failed because .git folder is copied to target
Description
The k8s:build action copies the .git folder to target and then failed to build the docker image.
Info
- Eclipse JKube version : 1.1.0
- Maven version (
mvn -v) :
Apache Maven 3.0.5 (Red Hat 3.0.5-17)
Maven home: /usr/share/maven
Java version: 11.0.9, vendor: AdoptOpenJDK
Java home: /usr/lib/jvm/adoptopenjdk-11-openj9
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-1160.11.1.el7.x86_64", arch: "amd64", family: "unix"
-
Kubernetes / Red Hat OpenShift setup and version : 1.20
-
If it’s a bug, how to reproduce : Clone a git repository. Then, execute the k8s:build action. The following error is shown:
[ERROR] k8s: Failed to execute the build [Error while trying to build the image: C:\dev\tmp\jkube-test\hello-world\target\docker\asms\hello-world\0.1.0\build\target\.git\objects\pack\pack-196b9336d55bf0c758ab92782f761f62fd0f95f4.idx]
To reproduce the issue, you can use the attached project. Then do:
- mvn clean install
- mvn k8s:build
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 28 (15 by maintainers)
@manusa I can confirm that this is working now. Great work!
Thanks @manusa. Your tip works fine.