-
Notifications
You must be signed in to change notification settings - Fork 0
install draft
veeramarni edited this page May 21, 2018
·
5 revisions
To install draft
$ brew tap azure/draft
$ brew install draft
pack-repo
is a draft plugin that allows one to manage pack repositories. It gets installed by default as part of draft init
set draft registry to google project id.
draft config set registry gcr.io/<project_id>
login to google container registry
docker login -u _json_key -p "$(cat ../../config/development/gke-docker.json)" https://gcr.io
Draft needs to push docker images to a container registry. On GKE, it’s easy to use Google Container Registry. To do it, you need some auth token setup.
First, get the access token,
$ gcloud auth application-default print-access-token
yn89.GlxcBB8ylkd...
Then, format & base64 encode the token,
$ echo '{"registrytoken":"yn89.GlxcBB8ylkd..."}' | base64 -w 0
eyJyZWdpc3RyeXRva2VuIjoieW44OS5HbH...
Now preparation is done. Run the following command and install Draft!
$ draft init --set registry.url=gcr.io,registry.org=${PROJECT_ID},registry.authtoken=eyJyZWdpc3RyeXRva2VuIjo,basedomain=35.181.245.100.xip.io