containerbuilding / cbi

Container Builder Interface for Kubernetes with support for several backends (Docker, BuildKit, Buildah, kaniko, img, Google Cloud Container Builder, Azure Container Registry Build, OpenShift Source-to-Image...)
Apache License 2.0
243 stars 18 forks source link

Insecure Registry #52

Closed guilhermebr closed 6 years ago

guilhermebr commented 6 years ago

Is it possible to push with Docker plugin to an insecure registry?

AkihiroSuda commented 6 years ago

Hi, thank you for trying cbi!

You can push to an local insecure registry.

Actually I’m using an local insecure registry for ~Travis +~ kubeadm-dind-cluster testing. (EDIT: push is not tested on Travis atm) https://github.com/containerbuilding/cbi/blob/master/hack/dind/up.sh

An example BuildJob would be

apiVersion: cbi.containerbuilding.github.io/v1alpha1
kind: BuildJob
metadata:
  name: ex-git-push
spec:
  registry:
    target: somewhere.local/foo/bar
    push: true
  language:
    kind: Dockerfile
  context:
    kind: Git
    git:
      url: git://github.com/foo/bar
guilhermebr commented 6 years ago

Thanks!!