-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Generated Dockerfile COPY Command syntax formed incorrectly #1097
Comments
@move2git Thanks for raising the issue. In the Move2Kube UI please go to the Support page and copy/paste the details here. |
|
@HarikrishnanBalagopal I have pasted the details now |
Thanks, possibly the space in this line between move2kube/assets/built-in/transformers/dockerfilegenerator/java/jar/templates/Dockerfile.jar-run Line 7 in 9bc4e8b
Should make it similar to move2kube/assets/built-in/transformers/dockerfilegenerator/java/tomcat/templates/Dockerfile.tomcat Line 24 in 9bc4e8b
I think the space got introduced accidentally in this PR https://github.com/konveyor/move2kube/pull/1001/files#diff-04b72caa3d4688f1c2eaa6edaca8db27cee3e2abd814dcff0d169c23b47a5d09R7 |
@HarikrishnanBalagopal Thank you so much Hari for quickly looking at it and pointing to it. I also want to start contributing to open source. I don't know how to start and setup a test/debug environment in my local. Is there any help available to look in to it |
Space should be between Container Name and DeploymentFilePath, you rightly pointed out the fix |
@HarikrishnanBalagopal once done with fix and moved to pre-prod/prod, keep me informed, I will test it and confirm |
Nice! You can take a look at issues labelled |
Describe the bug
As is generated : COPY --from= rating-buildstage/app/target/rating-0.0.1-SNAPSHOT.jar .
It has to be like : COPY --from=rating-buildstage /app/target/rating-0.0.1-SNAPSHOT.jar .
There should be space between image name build jar file path, but instead the space presented after =
COPY --from=<repository_image_name>
To Reproduce
Steps to reproduce the behavior:
STEP 1/3: FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
STEP 2/3: COPY rating-0.0.1-SNAPSHOT.jar .
--> 62de1907ec18
STEP 3/3: COPY --from= rating-buildstage/app/target/rating-0.0.1-SNAPSHOT.jar .
Error: COPY --from=: no stage or image found with that name
Expected behavior
The build should have completed without any errors
Screenshots
STEP 3/3: COPY --from= rating-buildstage/app/target/rating-0.0.1-SNAPSHOT.jar .
Error: COPY --from=: no stage or image found with that name
Desktop (please complete the following information):
Additional context
Rest all works fine, I have even tried it seperately, special thanks to Padmanabha V Seshadri to helping in slack community to go forward
The text was updated successfully, but these errors were encountered: