Last active
September 16, 2019 11:36
-
-
Save BenHizak/a792064af4dc49db07876815439aabbf to your computer and use it in GitHub Desktop.
Kaniko capital letter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# the following build fails but should pass | |
gcloud builds submit --config=uppercase.yml | tee uppercase.log | |
# the following build should pass | |
gcloud builds submit --config=lowercase.yml | tee lowercase.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the name 'Library' causes a problem. but 'library' (lowercase) works fine | |
FROM python:3.7.2 AS library | |
FROM library | |
RUN echo "another line" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the name 'Library' causes a problem. but 'library' (lowercase) works fine | |
FROM python:3.7.2 AS Library | |
FROM Library | |
RUN echo "another line" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------- REMOTE BUILD OUTPUT ---------------------------------- | |
starting build "19c521ec-ca79-4940-a896-fcd48f9e7ac8" | |
FETCHSOURCE | |
Fetching storage object: gs://my-project_cloudbuild/source/1568633260.29-77d992c672ea49c290cb81b6ff662509.tgz#1568633259466313 | |
Copying gs://my-project_cloudbuild/source/1568633260.29-77d992c672ea49c290cb81b6ff662509.tgz#1568633259466313... | |
/ [0 files][ 0.0 B/ 1.3 KiB] | |
/ [1 files][ 1.3 KiB/ 1.3 KiB] | |
Operation completed over 1 objects/1.3 KiB. | |
BUILD | |
Already have image (with digest): gcr.io/kaniko-project/executor@sha256:584a8d90679211d9b09465d778990ec15965cf78f57f197e973d57d14b08eb81 | |
[36mINFO[0m[0000] Resolved base name python:3.7.2 to python:3.7.2 | |
[36mINFO[0m[0000] Resolved base name library to library | |
[36mINFO[0m[0000] Resolved base name python:3.7.2 to python:3.7.2 | |
[36mINFO[0m[0000] Resolved base name library to library | |
[36mINFO[0m[0000] Downloading base image python:3.7.2 | |
[36mINFO[0m[0000] Error while retrieving image from cache: getting file info: stat /cache/sha256:9db2a731d3c7970453d37f5f92708ffd1255d12a76517fb24f944ca3d4f84f8e: no such file or directory | |
[36mINFO[0m[0000] Downloading base image python:3.7.2 | |
[36mINFO[0m[0001] Built cross stage deps: map[] | |
[36mINFO[0m[0001] Downloading base image python:3.7.2 | |
[36mINFO[0m[0001] Error while retrieving image from cache: getting file info: stat /cache/sha256:9db2a731d3c7970453d37f5f92708ffd1255d12a76517fb24f944ca3d4f84f8e: no such file or directory | |
[36mINFO[0m[0001] Downloading base image python:3.7.2 | |
[36mINFO[0m[0001] Skipping unpacking as no commands require it. | |
[36mINFO[0m[0001] Taking snapshot of full filesystem... | |
[36mINFO[0m[0001] Storing source image from stage 0 at path /kaniko/stages/0 | |
[36mINFO[0m[0004] Deleting filesystem... | |
[36mINFO[0m[0004] Base image from previous stage 0 found, using saved tar at path /kaniko/stages/0 | |
[36mINFO[0m[0005] Unpacking rootfs as cmd RUN echo "another line" requires it. | |
[36mINFO[0m[0018] Taking snapshot of full filesystem... | |
[36mINFO[0m[0030] RUN echo "another line" | |
[36mINFO[0m[0030] cmd: /bin/sh | |
[36mINFO[0m[0030] args: [-c echo "another line"] | |
another line | |
[36mINFO[0m[0030] Taking snapshot of full filesystem... | |
[36mINFO[0m[0034] No files were changed, appending empty layer to config. No layer added to image. | |
PUSH | |
DONE | |
---------------------------------------------------------------------------------------- | |
ID CREATE_TIME DURATION SOURCE IMAGES STATUS | |
19c521ec-ca79-4940-a896-fcd48f9e7ac8 2019-09-16T11:27:39+00:00 44S gs://my-project_cloudbuild/source/1568633260.29-77d992c672ea49c290cb81b6ff662509.tgz - SUCCESS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- name: gcr.io/kaniko-project/executor@sha256:584a8d90679211d9b09465d778990ec15965cf78f57f197e973d57d14b08eb81 | |
args: | |
- --dockerfile=Dockerfile-lowercase | |
- --destination=gcr.io/my-project/kaniko_fail_example_capital # note: change 'your-project' to your google cloud | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------- REMOTE BUILD OUTPUT ---------------------------------- | |
starting build "7e1de778-143d-40fe-9e21-683c51fde205" | |
FETCHSOURCE | |
Fetching storage object: gs://my-project_cloudbuild/source/1568633246.06-66fdd267ca2f4b9e8ebd1f61365e0b51.tgz#1568633245319762 | |
Copying gs://my-project_cloudbuild/source/1568633246.06-66fdd267ca2f4b9e8ebd1f61365e0b51.tgz#1568633245319762... | |
/ [0 files][ 0.0 B/ 800.0 B] | |
/ [1 files][ 800.0 B/ 800.0 B] | |
Operation completed over 1 objects/800.0 B. | |
BUILD | |
Already have image (with digest): gcr.io/kaniko-project/executor@sha256:584a8d90679211d9b09465d778990ec15965cf78f57f197e973d57d14b08eb81 | |
[36mINFO[0m[0000] Resolved base name python:3.7.2 to python:3.7.2 | |
[36mINFO[0m[0000] Resolved base name Library to Library | |
[36mINFO[0m[0000] Resolved base name python:3.7.2 to python:3.7.2 | |
[36mINFO[0m[0000] Resolved base name Library to Library | |
[36mINFO[0m[0000] Downloading base image python:3.7.2 | |
[36mINFO[0m[0001] Error while retrieving image from cache: getting file info: stat /cache/sha256:9db2a731d3c7970453d37f5f92708ffd1255d12a76517fb24f944ca3d4f84f8e: no such file or directory | |
[36mINFO[0m[0001] Downloading base image python:3.7.2 | |
[36mINFO[0m[0002] Error while retrieving image from cache: could not parse reference | |
[36mINFO[0m[0002] Downloading base image Library | |
error building image: could not parse reference | |
ERROR | |
ERROR: build step 0 "gcr.io/kaniko-project/executor@sha256:584a8d90679211d9b09465d778990ec15965cf78f57f197e973d57d14b08eb81" failed: exit status 1 | |
---------------------------------------------------------------------------------------- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- name: gcr.io/kaniko-project/executor@sha256:584a8d90679211d9b09465d778990ec15965cf78f57f197e973d57d14b08eb81 | |
args: | |
- --dockerfile=Dockerfile-uppercase | |
- --destination=gcr.io/my-project/kaniko_fail_example_capital # note: change 'your-project' to your google cloud | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reported as Kaniko issue #770