Skip to content

Conversation

@jnewland
Copy link
Member

This build uses the layer cache for all steps in our Dockerfile except ADD run.sh run.sh:

starting build "4c898f50-eaa8-4059-9454-94c95992119b"

FETCHSOURCE
Fetching storage object: gs://677203284384.cloudbuild-source.googleusercontent.com/e3f8f82c37b2798c9ffebc7a7af213151164382a-96a0d5e7-7c1f-499b-98c1-f6626906ad69.tar.gz#1535548153823967
Copying gs://677203284384.cloudbuild-source.googleusercontent.com/e3f8f82c37b2798c9ffebc7a7af213151164382a-96a0d5e7-7c1f-499b-98c1-f6626906ad69.tar.gz#1535548153823967...
/ [0 files][ 0.0 B/ 1.6 KiB] 
/ [1 files][ 1.6 KiB/ 1.6 KiB] 
Operation completed over 1 objects/1.6 KiB. 
tar: Substituting `.' for empty member name
BUILD
Starting Step #0
Step #0: Already have image (with digest): gcr.io/cloud-builders/docker
Step #0: Error response from daemon: manifest for gcr.io/urcomputeringpal/cloudbuild-branch-based-caching:example-1 not found
Step #0: master: Pulling from urcomputeringpal/cloudbuild-branch-based-caching
Step #0: 8e3ba11ec2a2: Already exists
Step #0: dbb12c9c661c: Pulling fs layer
Step #0: 0341b007c935: Pulling fs layer
Step #0: 7e7f7f86258a: Pulling fs layer
Step #0: 72994e4e6a86: Pulling fs layer
Step #0: 72994e4e6a86: Waiting
Step #0: 0341b007c935: Verifying Checksum
Step #0: 0341b007c935: Download complete
Step #0: 7e7f7f86258a: Verifying Checksum
Step #0: 7e7f7f86258a: Download complete
Step #0: dbb12c9c661c: Verifying Checksum
Step #0: dbb12c9c661c: Download complete
Step #0: dbb12c9c661c: Pull complete
Step #0: 0341b007c935: Pull complete
Step #0: 7e7f7f86258a: Pull complete
Step #0: 72994e4e6a86: Verifying Checksum
Step #0: 72994e4e6a86: Download complete
Step #0: 72994e4e6a86: Pull complete
Step #0: Digest: sha256:96babe6faab5a5ca4e1fa4ebfd35ab493b5dc44c342585bcda6a04eb7ec90989
Step #0: Status: Downloaded newer image for gcr.io/urcomputeringpal/cloudbuild-branch-based-caching:master
Finished Step #0
Starting Step #1
Step #1: Already have image (with digest): gcr.io/cloud-builders/docker
Step #1: Sending build context to Docker daemon 7.68kB

Step #1: Step 1/6 : FROM alpine
Step #1: latest: Pulling from library/alpine
Step #1: Digest: sha256:0873c923e00e0fd2ba78041bfb64a105e1ecb7678916d1f7776311e45bf5634b
Step #1: Status: Downloaded newer image for alpine:latest
Step #1: ---> 11cd0b38bc3c
Step #1: Step 2/6 : WORKDIR /app
Step #1: ---> Using cache
Step #1: ---> 7212ccc34a7c
Step #1: Step 3/6 : ADD README.md README.md
Step #1: ---> Using cache
Step #1: ---> e8527efbdfe7
Step #1: Step 4/6 : RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
Step #1: ---> Using cache
Step #1: ---> b90e9b6c88c0
Step #1: Step 5/6 : ADD run.sh run.sh
Step #1: ---> 409e68f9e0e5
Step #1: Step 6/6 : ENTRYPOINT ["/app/run.sh"]
Step #1: ---> Running in cc2eac3beccb
Step #1: Removing intermediate container cc2eac3beccb
Step #1: ---> 76db9595a020
Step #1: Successfully built 76db9595a020
Step #1: Successfully tagged gcr.io/urcomputeringpal/cloudbuild-branch-based-caching:example-1
Step #1: Successfully tagged gcr.io/urcomputeringpal/cloudbuild-branch-based-caching:e3f8f82c37b2798c9ffebc7a7af213151164382a
Finished Step #1
PUSH
Pushing gcr.io/urcomputeringpal/cloudbuild-branch-based-caching:example-1
The push refers to repository [gcr.io/urcomputeringpal/cloudbuild-branch-based-caching]
67389b0c08b5: Preparing
496a3d8bf8b8: Preparing
c42a87a27de9: Preparing
9a20ec34bec2: Preparing
73046094a9b8: Preparing
9a20ec34bec2: Layer already exists
496a3d8bf8b8: Layer already exists
73046094a9b8: Layer already exists
c42a87a27de9: Layer already exists
67389b0c08b5: Pushed
example-1: digest: sha256:b45fe47bf1473959e9e599e18563a771855d58b1f8ef22b45aef23115448059d size: 1359
Pushing gcr.io/urcomputeringpal/cloudbuild-branch-based-caching:e3f8f82c37b2798c9ffebc7a7af213151164382a
The push refers to repository [gcr.io/urcomputeringpal/cloudbuild-branch-based-caching]
67389b0c08b5: Preparing
496a3d8bf8b8: Preparing
c42a87a27de9: Preparing
9a20ec34bec2: Preparing
73046094a9b8: Preparing
67389b0c08b5: Layer already exists
9a20ec34bec2: Layer already exists
73046094a9b8: Layer already exists
c42a87a27de9: Layer already exists
496a3d8bf8b8: Layer already exists
e3f8f82c37b2798c9ffebc7a7af213151164382a: digest: sha256:b45fe47bf1473959e9e599e18563a771855d58b1f8ef22b45aef23115448059d size: 1359
DONE

@jnewland jnewland changed the title Example 1 Example 1: Update run.sh Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants