Use your Docker registry to store anything. THIS IS AN EXPERIMENTAL PROTOTYPE.
Use rocker
to store your Kubernetes manifests in your Docker registry.
$ cat hello-deployment.yaml | rocker push gcr.io/my-gcp-project/k8s/hello-deployment
$ cat hello-service.yaml | rocker push gcr.io/my-gcp-project/k8s/hello-service
$
$ rocker pull gcr.io/my-gcp-project/k8s/hello-deployment | kubectl apply -f -
$ rocker pull gcr.io/my-gcp-project/k8s/hello-service | kubectl apply -f -
Use rocker
to store anything else.
$ echo 'Hello World' | rocker push gcr.io/my-gcp-project/hello-world
$
$ rocker pull gcr.io/my-gcp-project/hello-world 2> /dev/null
Hello World
curl -Lo ./rocker https://storage.googleapis.com/rocker-download/rocker-linux-amd64 && \
chmod +x ./rocker && sudo mv ./rocker /usr/local/bin
curl -Lo ./rocker https://storage.googleapis.com/rocker-download/rocker-darwin-amd64 && \
chmod +x ./rocker && sudo mv ./rocker /usr/local/bin
Download the latest Windows build: https://storage.googleapis.com/rocker-download/rocker-windows-amd64.exe
go get -u github.com/coollog/rocker
# `rocker` will be at `$GOPATH/bin/rocker`
rocker
simply pushes an image with one layer containing a single file /data
that contains your data.
rocker
uses the go-containerregistry
library.