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

fix(Dockerfile): use temporary busybox mount to create /kaniko directory #2155

Merged
merged 23 commits into from
Jul 8, 2022

Conversation

hown3d
Copy link
Contributor

@hown3d hown3d commented Jun 28, 2022

Fixes breaking builds introduced in #2009 and issue #1363

Description

Using a locally generated tarball introduced errors on builds, that are not run using the make target images.

This PR uses buildkits mount feature to temporary mount busybox in order to create the /kaniko directory with rwx permissions.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Höhl, Lukas added 18 commits June 28, 2022 09:28
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
…mount

Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
@hown3d
Copy link
Contributor Author

hown3d commented Jun 28, 2022

Somethings seems to be odd when building on s390x platform: https://github.com/GoogleContainerTools/kaniko/runs/7092430574?check_suite_focus=true#step:7:271

@imjasonh
Copy link
Collaborator

This came up before: #1749

Höhl, Lukas added 3 commits June 28, 2022 19:41
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
@hown3d
Copy link
Contributor Author

hown3d commented Jun 29, 2022

I chose to use busybox with musl libc because the binaries are staticly compiled for all platforms. This removes the need to import /lib on certain architectures which is hard to maintain.

Signed-off-by: Höhl, Lukas <lukas.hoehl@accso.de>
@hown3d
Copy link
Contributor Author

hown3d commented Jul 5, 2022

Needs #2154 to be merged for successful builds.

@imjasonh
Copy link
Collaborator

imjasonh commented Jul 5, 2022

Needs #2154 to be merged for successful builds.

#2154 says it needs this (#2155) for builds to pass. Should they just be consolidated into one passing PR?

@hown3d
Copy link
Contributor Author

hown3d commented Jul 5, 2022

Needs #2154 to be merged for successful builds.

#2154 says it needs this (#2155) for builds to pass. Should they just be consolidated into one passing PR?

Yes, i guess that's probably the best way. Will merge the branch of this other PR into this one and close #2154.

@imjasonh imjasonh merged commit 8710ce3 into GoogleContainerTools:main Jul 8, 2022
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.

2 participants