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

buildah: don't modify Dockerfile in place #1462

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

chmeliik
Copy link
Contributor

@chmeliik chmeliik commented Sep 24, 2024

STONEBLD-2795

Instead, make a copy outside the repo and modify the copy. This is to
avoid dirtying the repo.

For example, when combined with the push-dockerfile task, the pipeline
will now push the original dockerfile instead of pushing the modified
one.

@chmeliik chmeliik marked this pull request as draft September 25, 2024 09:24
@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

/test

@chmeliik
Copy link
Contributor Author

/retest

@chmeliik chmeliik force-pushed the dont-leave-dockerfile-modified branch from d73bd22 to fb6d731 Compare September 25, 2024 10:59
@chmeliik
Copy link
Contributor Author

/test

@chmeliik
Copy link
Contributor Author

/test

@chmeliik chmeliik force-pushed the dont-leave-dockerfile-modified branch from ab263b3 to e054269 Compare September 26, 2024 12:25
@chmeliik
Copy link
Contributor Author

/test

@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

/test

@chmeliik
Copy link
Contributor Author

Without the fix, the e2e-tests fail as expected (though with a message not exactly readable to humans)

image

Now let's re-apply the fix and see 🤞

@chmeliik chmeliik force-pushed the dont-leave-dockerfile-modified branch from 0eba467 to d1645fc Compare September 27, 2024 07:59
@chmeliik
Copy link
Contributor Author

/test

@chmeliik
Copy link
Contributor Author

It's working 🎉

@chmeliik chmeliik force-pushed the dont-leave-dockerfile-modified branch from d1645fc to ec7be1f Compare September 27, 2024 08:41
@chmeliik chmeliik marked this pull request as ready for review September 27, 2024 08:42
@chmeliik
Copy link
Contributor Author

/test

STONEBLD-2795

Instead, make a copy outside the repo and modify the copy. This is to
avoid dirtying the repo.

For example, when combined with the push-dockerfile task, the pipeline
will now push the original dockerfile instead of pushing the modified
one.

Signed-off-by: Adam Cmiel <[email protected]>
The '... -t $IMAGE' line changed, making checkton report the violations
on this line:

- $IMAGE needs quotes (valid)
- $IMAGE is a potential misspelling of $image (not valid, IMAGE is
  defined externally but checkton doesn't know that)

Signed-off-by: Adam Cmiel <[email protected]>
@chmeliik chmeliik force-pushed the dont-leave-dockerfile-modified branch from ec7be1f to 6242a21 Compare September 27, 2024 09:11
@chmeliik
Copy link
Contributor Author

/retest

@chmeliik chmeliik added this pull request to the merge queue Sep 27, 2024
Merged via the queue into konflux-ci:main with commit f304819 Sep 27, 2024
14 checks passed
@chmeliik chmeliik deleted the dont-leave-dockerfile-modified branch September 27, 2024 12:28
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.

6 participants