Skip to content

Instantly share code, notes, and snippets.

@zmackie
Created March 12, 2020 15:14
Show Gist options
  • Save zmackie/f49fa02c933ac4b5c8aba2e9ac23d0e4 to your computer and use it in GitHub Desktop.
Save zmackie/f49fa02c933ac4b5c8aba2e9ac23d0e4 to your computer and use it in GitHub Desktop.
output.sh
# LOCAL REBUILD
± zm |master → origin ✓| → pack build -p apps --builder cnbs/sample-builder:alpine zmackie/localtest
alpine: Pulling from cnbs/sample-builder
Digest: sha256:9e3cfea3f90fb4fbbe855a2cc9ce505087ae10d6805cfcb44bd67a4b72628641
Status: Image is up to date for cnbs/sample-builder:alpine
alpine: Pulling from cnbs/sample-stack-run
Digest: sha256:f611081e086fcc7f7b8b1eb3b9844f05a34f65dba40656b7bf0d31742964ebbc
Status: Image is up to date for cnbs/sample-stack-run:alpine
===> DETECTING
[detector] io.buildpacks.samples.hello-world 0.0.1
[detector] io.buildpacks.samples.hello-moon 0.0.1
===> ANALYZING
[analyzer] Warning: Image "index.docker.io/zmackie/localtest:latest" not found
===> RESTORING
===> BUILDING
[builder] ---> Hello World buildpack
[builder] env_dir: /platform/env
[builder] env vars:
[builder] declare -x CNB_GROUP_ID="1001"
[builder] declare -x CNB_STACK_ID="io.buildpacks.samples.stacks.alpine"
[builder] declare -x CNB_USER_ID="1000"
[builder] declare -x HOME="/home/cnb"
[builder] declare -x HOSTNAME="c653d80e0456"
[builder] declare -x OLDPWD
[builder] declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[builder] declare -x PWD="/workspace"
[builder] declare -x SHLVL="1"
[builder] layers_dir: /layers/io.buildpacks.samples.hello-world
[builder] plan_path: /tmp/plan.229988548/io.buildpacks.samples.hello-world/plan.toml
[builder] plan contents:
[builder] [[entries]]
[builder] name = "some-world"
[builder] version = ""
[builder]
[builder] [[entries]]
[builder] name = "some-world"
[builder] version = "0.1"
[builder] [entries.metadata]
[builder] world = "Earth-616"
[builder]
[builder] ---> Done
[builder] ---> Hello Moon buildpack
[builder] env_dir: /platform/env
[builder] env vars:
[builder] declare -x CNB_GROUP_ID="1001"
[builder] declare -x CNB_STACK_ID="io.buildpacks.samples.stacks.alpine"
[builder] declare -x CNB_USER_ID="1000"
[builder] declare -x HOME="/home/cnb"
[builder] declare -x HOSTNAME="c653d80e0456"
[builder] declare -x OLDPWD
[builder] declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[builder] declare -x PWD="/workspace"
[builder] declare -x SHLVL="1"
[builder] layers_dir: /layers/io.buildpacks.samples.hello-moon
[builder] plan_path: /tmp/plan.229988548/io.buildpacks.samples.hello-moon/plan.toml
[builder] plan contents:
[builder]
[builder] ---> Done
===> EXPORTING
[exporter] Adding layer 'launcher'
[exporter] Adding 1/1 app layer(s)
[exporter] Adding layer 'config'
[exporter] *** Images (dc9d923ceb08):
[exporter] index.docker.io/zmackie/localtest:latest
Successfully built image zmackie/localtest
|2.6.3| NY-Floater-15565 in ~/workspace/samples
± zm |master → origin ✓| → docker images --digests localtest:latest
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE
localtest latest <none> dc9d923ceb08 40 years ago 16.9MB
|2.6.3| NY-Floater-15565 in ~/workspace/samples
± zm |master → origin ✓| → pack build -p apps --builder cnbs/sample-builder:alpine zmackie/localtest:local-push
alpine: Pulling from cnbs/sample-builder
Digest: sha256:9e3cfea3f90fb4fbbe855a2cc9ce505087ae10d6805cfcb44bd67a4b72628641
Status: Image is up to date for cnbs/sample-builder:alpine
alpine: Pulling from cnbs/sample-stack-run
Digest: sha256:f611081e086fcc7f7b8b1eb3b9844f05a34f65dba40656b7bf0d31742964ebbc
Status: Image is up to date for cnbs/sample-stack-run:alpine
===> DETECTING
[detector] io.buildpacks.samples.hello-world 0.0.1
[detector] io.buildpacks.samples.hello-moon 0.0.1
===> ANALYZING
[analyzer] Warning: Image "index.docker.io/zmackie/localtest:local-push" not found
===> RESTORING
===> BUILDING
[builder] ---> Hello World buildpack
[builder] env_dir: /platform/env
[builder] env vars:
[builder] declare -x CNB_GROUP_ID="1001"
[builder] declare -x CNB_STACK_ID="io.buildpacks.samples.stacks.alpine"
[builder] declare -x CNB_USER_ID="1000"
[builder] declare -x HOME="/home/cnb"
[builder] declare -x HOSTNAME="51a7bb9bd4ac"
[builder] declare -x OLDPWD
[builder] declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[builder] declare -x PWD="/workspace"
[builder] declare -x SHLVL="1"
[builder] layers_dir: /layers/io.buildpacks.samples.hello-world
[builder] plan_path: /tmp/plan.884071740/io.buildpacks.samples.hello-world/plan.toml
[builder] plan contents:
[builder] [[entries]]
[builder] name = "some-world"
[builder] version = ""
[builder]
[builder] [[entries]]
[builder] name = "some-world"
[builder] version = "0.1"
[builder] [entries.metadata]
[builder] world = "Earth-616"
[builder]
[builder] ---> Done
[builder] ---> Hello Moon buildpack
[builder] env_dir: /platform/env
[builder] env vars:
[builder] declare -x CNB_GROUP_ID="1001"
[builder] declare -x CNB_STACK_ID="io.buildpacks.samples.stacks.alpine"
[builder] declare -x CNB_USER_ID="1000"
[builder] declare -x HOME="/home/cnb"
[builder] declare -x HOSTNAME="51a7bb9bd4ac"
[builder] declare -x OLDPWD
[builder] declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[builder] declare -x PWD="/workspace"
[builder] declare -x SHLVL="1"
[builder] layers_dir: /layers/io.buildpacks.samples.hello-moon
[builder] plan_path: /tmp/plan.884071740/io.buildpacks.samples.hello-moon/plan.toml
[builder] plan contents:
[builder]
[builder] ---> Done
===> EXPORTING
[exporter] Adding layer 'launcher'
[exporter] Adding 1/1 app layer(s)
[exporter] Adding layer 'config'
[exporter] *** Images (dc9d923ceb08):
[exporter] index.docker.io/zmackie/localtest:local-push
Successfully built image zmackie/localtest:local-push
# REMOTE REBUILD
± zm |master → origin ✓| → pack build -p apps --builder cnbs/sample-builder:alpine zmackie/localtest:publish --publish
alpine: Pulling from cnbs/sample-builder
Digest: sha256:9e3cfea3f90fb4fbbe855a2cc9ce505087ae10d6805cfcb44bd67a4b72628641
Status: Image is up to date for cnbs/sample-builder:alpine
===> DETECTING
[detector] io.buildpacks.samples.hello-world 0.0.1
[detector] io.buildpacks.samples.hello-moon 0.0.1
===> ANALYZING
[analyzer] Warning: Image "index.docker.io/zmackie/localtest:publish" not found
===> RESTORING
===> BUILDING
[builder] ---> Hello World buildpack
[builder] env_dir: /platform/env
[builder] env vars:
[builder] declare -x CNB_GROUP_ID="1001"
[builder] declare -x CNB_STACK_ID="io.buildpacks.samples.stacks.alpine"
[builder] declare -x CNB_USER_ID="1000"
[builder] declare -x HOME="/home/cnb"
[builder] declare -x HOSTNAME="45b353d23dcd"
[builder] declare -x OLDPWD
[builder] declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[builder] declare -x PWD="/workspace"
[builder] declare -x SHLVL="1"
[builder] layers_dir: /layers/io.buildpacks.samples.hello-world
[builder] plan_path: /tmp/plan.231902984/io.buildpacks.samples.hello-world/plan.toml
[builder] plan contents:
[builder] [[entries]]
[builder] name = "some-world"
[builder] version = ""
[builder]
[builder] [[entries]]
[builder] name = "some-world"
[builder] version = "0.1"
[builder] [entries.metadata]
[builder] world = "Earth-616"
[builder]
[builder] ---> Done
[builder] ---> Hello Moon buildpack
[builder] env_dir: /platform/env
[builder] env vars:
[builder] declare -x CNB_GROUP_ID="1001"
[builder] declare -x CNB_STACK_ID="io.buildpacks.samples.stacks.alpine"
[builder] declare -x CNB_USER_ID="1000"
[builder] declare -x HOME="/home/cnb"
[builder] declare -x HOSTNAME="45b353d23dcd"
[builder] declare -x OLDPWD
[builder] declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[builder] declare -x PWD="/workspace"
[builder] declare -x SHLVL="1"
[builder] layers_dir: /layers/io.buildpacks.samples.hello-moon
[builder] plan_path: /tmp/plan.231902984/io.buildpacks.samples.hello-moon/plan.toml
[builder] plan contents:
[builder]
[builder] ---> Done
===> EXPORTING
[exporter] Adding layer 'launcher'
[exporter] Adding 1/1 app layer(s)
[exporter] Adding layer 'config'
[exporter] *** Images (sha256:9498b3674d4c3f21a9a48841a909ec1f0d5b84bb458a96839a79b24714e6f66f):
[exporter] index.docker.io/zmackie/localtest:publish
Successfully built image zmackie/localtest:publish
|2.6.3| NY-Floater-15565 in ~/workspace/samples
± zm |master → origin ✓| → pack build -p apps --builder cnbs/sample-builder:alpine zmackie/localtest:publish --publish
alpine: Pulling from cnbs/sample-builder
Digest: sha256:9e3cfea3f90fb4fbbe855a2cc9ce505087ae10d6805cfcb44bd67a4b72628641
Status: Image is up to date for cnbs/sample-builder:alpine
===> DETECTING
[detector] io.buildpacks.samples.hello-world 0.0.1
[detector] io.buildpacks.samples.hello-moon 0.0.1
===> ANALYZING
===> RESTORING
===> BUILDING
[builder] ---> Hello World buildpack
[builder] env_dir: /platform/env
[builder] env vars:
[builder] declare -x CNB_GROUP_ID="1001"
[builder] declare -x CNB_STACK_ID="io.buildpacks.samples.stacks.alpine"
[builder] declare -x CNB_USER_ID="1000"
[builder] declare -x HOME="/home/cnb"
[builder] declare -x HOSTNAME="12414cf85904"
[builder] declare -x OLDPWD
[builder] declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[builder] declare -x PWD="/workspace"
[builder] declare -x SHLVL="1"
[builder] layers_dir: /layers/io.buildpacks.samples.hello-world
[builder] plan_path: /tmp/plan.966592268/io.buildpacks.samples.hello-world/plan.toml
[builder] plan contents:
[builder] [[entries]]
[builder] name = "some-world"
[builder] version = ""
[builder]
[builder] [[entries]]
[builder] name = "some-world"
[builder] version = "0.1"
[builder] [entries.metadata]
[builder] world = "Earth-616"
[builder]
[builder] ---> Done
[builder] ---> Hello Moon buildpack
[builder] env_dir: /platform/env
[builder] env vars:
[builder] declare -x CNB_GROUP_ID="1001"
[builder] declare -x CNB_STACK_ID="io.buildpacks.samples.stacks.alpine"
[builder] declare -x CNB_USER_ID="1000"
[builder] declare -x HOME="/home/cnb"
[builder] declare -x HOSTNAME="12414cf85904"
[builder] declare -x OLDPWD
[builder] declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[builder] declare -x PWD="/workspace"
[builder] declare -x SHLVL="1"
[builder] layers_dir: /layers/io.buildpacks.samples.hello-moon
[builder] plan_path: /tmp/plan.966592268/io.buildpacks.samples.hello-moon/plan.toml
[builder] plan contents:
[builder]
[builder] ---> Done
===> EXPORTING
[exporter] Reusing layers from image 'index.docker.io/zmackie/localtest@sha256:9498b3674d4c3f21a9a48841a909ec1f0d5b84bb458a96839a79b24714e6f66f'
[exporter] Reusing layer 'launcher'
[exporter] Reusing 1/1 app layer(s)
[exporter] Reusing layer 'config'
[exporter] *** Images (sha256:9498b3674d4c3f21a9a48841a909ec1f0d5b84bb458a96839a79b24714e6f66f):
[exporter] index.docker.io/zmackie/localtest:publish
Successfully built image zmackie/localtest:publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment