Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Knative build should work natively on just docker #539

Open
vrock28 opened this issue Jan 22, 2019 · 3 comments
Open

Knative build should work natively on just docker #539

vrock28 opened this issue Jan 22, 2019 · 3 comments

Comments

@vrock28
Copy link

vrock28 commented Jan 22, 2019

Expected Behavior

Knative build/build templates should work natively with just the docker engine as opposed to having a dependency on k8s. Given a source code repo, and a docker instance running, the process should be as simple as pointing the knative build/build template to the source code locally and it should give a docker image built locally out of source code. The image can later be pushed to any image registry as per the need.

Actual Behavior

Currently, we submit a YAML file to k8s that contains all the relevant details to finally end up with a running container on the same cluster.

Additional Info

@dgageot : Raising this issue as per our discussion on Twitter.

@dgageot
Copy link
Contributor

dgageot commented Jan 23, 2019

@vrock28 I didn't understand your issue was with knative/build. I thought it was mainly with Skaffold.
I'm afraid unbinding knative build from Kubernetes won't happen.
ping @mattmoor @imjasonh

@vrock28
Copy link
Author

vrock28 commented Mar 19, 2019

@dgageot : Apologies for the delayed response. I was under the impression that we were talking about knative build and not with Skaffold. Having said that, from a customer standpoint, the main ask here was to have a tool (like knative build) used on any OCI compliant container scheduler (docker etc) and the not have the dependency on the k8s cluster in itself to be available just to have an image built from source code. I also did have a conversation about this with @mattmoor and he was of the opinion that provisioning a user via RBAC policies on K8s cluster is much easier compared to daemons (docker and the likes) running as root on developer workstations (which i kind of dis-agree to :) ).

@vrock28
Copy link
Author

vrock28 commented Mar 19, 2019

Also from a Image Assurance Policy standpoint, it would be good to allow the customers have relevant pipelines in place that gives them the ability to scan the images before being deployed on the k8s cluster (even on a pre-production cluster where developers are still pushing their code via knative build)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants