1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-08 09:04:54 +00:00
kontain.me/test.sh
Jason Hall 11f3b02add Try to migrate to GCP buildpacks
- use Go modulesa
- support paths in repos, since GCP samples are in subdirs
- use curl to fetch archives instead of wget, since GCP builder doesn't have wget
- remove -helpers=true which GCP buildpacks don't support

/lifecycle/exporter fails because GCR auth helper isn't setup, possibly
because -helpers isn't around anymore?
2020-05-29 17:59:22 -04:00

19 lines
658 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
curl https://kontain.me | grep html
time docker pull random.kontain.me/random
time docker pull random.kontain.me/random:8x80
time docker pull ko.kontain.me/ko/github.com/knative/build/cmd/controller
time docker pull buildpack.kontain.me/buildpack/samples/apps/java-maven
time docker pull buildpack.kontain.me/buildpack/samples/apps/java-maven # caching!
tmp=$(mktemp -d)
git clone git@github.com:buildpack/samples/ $tmp
project=$(gcloud config get-value project)
CLOUDSDK_API_ENDPOINT_OVERRIDES_CLOUDBUILD=https://api-an3qnndwmq-uc.a.run.app/ gcloud builds submit --tag=gcr.io/$project/built $tmp/apps/java-maven
rm $tmp