Skip to content
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

bugfix: support copy dest with file name #1328

Conversation

kakaZhou719
Copy link
Member

@kakaZhou719 kakaZhou719 commented Apr 20, 2022

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

1, support copy dest with file name
2.not panic if decode line failed

Describe how to verify it

FROM kubernetes:v1.19.8
COPY cont/* contp
COPY a.txt pp/a.txt
COPY a.txt a.txt
COPY a/b.txt  etc/b.txt 
COPY ptest .
COPY dashboard.yaml manifests
CMD kubectl apply -f manifests/dashboard.yaml

Special notes for reviews

@kakaZhou719 kakaZhou719 changed the title bugfix:support copy dest with file name;not panic if decode line failed bugfix: support copy dest with file name Apr 20, 2022
@@ -43,7 +43,7 @@ func initImageSpec(kubefile string) (*v1.Image, error) {

rawImage := parser.NewParse().Parse(kubeFile)
if rawImage == nil {
return nil, fmt.Errorf("failed to parse kubefile, image is nil")
return nil, fmt.Errorf("failed to parse kubefile, bad Kubefile content")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should tell user the error detail is "get rawImage failed", and the parse function should return error.

@kakaZhou719
Copy link
Member Author

image

@fanux fanux merged commit d0be341 into sealerio:main Apr 21, 2022
fanux pushed a commit to fanux/sealer that referenced this pull request Apr 22, 2022
* bugfix:support copy dest with file name;not panic if decode line failed
fanux pushed a commit to fanux/sealer that referenced this pull request Apr 22, 2022
* bugfix:support copy dest with file name;not panic if decode line failed
fanux pushed a commit to fanux/sealer that referenced this pull request Apr 22, 2022
* bugfix:support copy dest with file name;not panic if decode line failed
bxy4543 pushed a commit to bxy4543/sealer that referenced this pull request Jun 27, 2022
* bugfix:support copy dest with file name;not panic if decode line failed
@kakaZhou719 kakaZhou719 deleted the bugfix-build-decode-line-copydest-with-file-name branch March 8, 2023 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants