From d4bb0e851120712980f453658626ab1c0292a9cc Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Wed, 21 Nov 2018 14:49:08 -0500 Subject: [PATCH] Add makisu example (#139) --- makisu/Dockerfile | 4 ++++ makisu/README.md | 5 +++++ makisu/cloudbuild.yaml | 11 +++++++++++ 3 files changed, 20 insertions(+) create mode 100644 makisu/Dockerfile create mode 100644 makisu/README.md create mode 100644 makisu/cloudbuild.yaml diff --git a/makisu/Dockerfile b/makisu/Dockerfile new file mode 100644 index 000000000..d6f8aeca1 --- /dev/null +++ b/makisu/Dockerfile @@ -0,0 +1,4 @@ +FROM ubuntu + +RUN apt-get update -y +RUN apt-get install -y ca-certificates #!COMMIT diff --git a/makisu/README.md b/makisu/README.md new file mode 100644 index 000000000..4149a1a0a --- /dev/null +++ b/makisu/README.md @@ -0,0 +1,5 @@ +# Makisu + +This directory contains an example of using [Uber's Makisu +tool](https://github.com/uber/makisu) to produce Docker images in +Google Cloud Build. diff --git a/makisu/cloudbuild.yaml b/makisu/cloudbuild.yaml new file mode 100644 index 000000000..1e2d2797c --- /dev/null +++ b/makisu/cloudbuild.yaml @@ -0,0 +1,11 @@ +steps: +- name: gcr.io/makisu-project/makisu:v0.1.0 + args: ['build', '--load', '--modifyfs=true', '-t', 'gcr.io/$PROJECT_ID/built-with-makisu', '--commit=explicit', '.'] + +# TODO: Instead of building with --load into the Docker daemon +# then pushing, use --push=gcr.io which will push directly to the +# registry and bypass the Docker daemon. Unfortunately, this seems +# to not work with Google's Application Default Credentials. + +images: +- gcr.io/$PROJECT_ID/built-with-makisu