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

Investigate whether is possible to use buildkit tool to build docker images inside a running container #16539

Open
vitaliy-guliy opened this issue Apr 3, 2020 · 3 comments
Labels
kind/enhancement A feature request - must adhere to the feature request template. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@vitaliy-guliy
Copy link
Contributor

Is your enhancement related to a problem? Please describe.

We already can build docker images inside a running container using buildah.
Buildit is alternative tool to build the images. We need to try to use use it for building of images.

Need to find a solution to use it in local and hosted Che.

Describe the solution you'd like

  • try to build the simplest image with buildkit

  • try to run the buildkit on hosted Che

  • if it works, create Che plugin bringing a dev container to the workspace with kuildkit.


@vitaliy-guliy vitaliy-guliy added kind/enhancement A feature request - must adhere to the feature request template. team/plugins severity/P2 Has a minor but important impact to the usage or development of the system. labels Apr 3, 2020
@amisevsk
Copy link
Contributor

amisevsk commented Apr 3, 2020

Adding docs for rootless buildkit[1] + kubernetes example[2]

[1] - https://github.com/moby/buildkit/blob/master/docs/rootless.md
[2] - https://github.com/moby/buildkit/tree/master/examples/kubernetes

@vitaliy-guliy
Copy link
Contributor Author

vitaliy-guliy commented May 14, 2020

Buildkit still does not work on openshift with the following error

/projects/che-sidecar-kubernetes-tooling $ cat /tmp/buildctl-daemonless.LhgNMj/log
[rootlesskit:parent] error: failed to setup UID/GID map: newuidmap 63 [0 1001080000 1 1 1001080000 65536] failed: newuidmap: Could not set caps
: exit status 1

Setting the proper values to /etc/subuid, /etc/subgid and to /etc/passwd does not give any result.

The problem (but I'm not sure) that is the dockedfile with Buildkit has already predefined used with ID 1000. It's strange, but it works on local minikube, where the user ID is 1724, but does not work on openshift with user ID 1001080000.

@che-bot
Copy link
Contributor

che-bot commented Jan 4, 2021

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 4, 2021
@ericwill ericwill added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system. labels Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

5 participants