mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 06:11:34 +02:00
- Change integration tests to use docker hub instead of GCR due to bug in library that requires authentication with gcr.io even for public images. See #966 for bug tracking this. - Make uploading to GCS bucket configurable through a flag --uploadToGCS - Utilize a locally deployed docker registry in travis CI to remove dependency of needing to authenticate with GCP. This requires host networking such that we can access the registry on localhost:5000 - Use the commit that's being tested for `TestGitBuildcontext` - Remove duplicate GitBuildContext case that's now covered by default in travis CI.
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
FROM debian:9.11
|
|
# First, try adding some regular files
|
|
ADD context/foo foo
|
|
ADD context/foo /foodir/
|
|
ADD context/bar/b* bar/
|
|
ADD . newdir
|
|
ADD ["context/foo", "/tmp/foo" ]
|
|
|
|
# Next, make sure environment replacement works
|
|
ENV contextenv ./context
|
|
ADD $contextenv/* /tmp/${contextenv}/
|
|
|
|
# Now, test extracting local tar archives
|
|
ADD context/tars/fil* /tars/
|
|
ADD context/tars/file.tar /tars_again
|
|
|
|
# This tar has some directories that should be whitelisted inside it.
|
|
|
|
ADD context/tars/sys.tar.gz /
|
|
|
|
# Test with ARG
|
|
ARG file
|
|
COPY $file /arg
|
|
|
|
# Finally, test adding a remote URL, concurrently with a normal file
|
|
ADD https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/download/v1.4.3/docker-credential-gcr_linux_386-1.4.3.tar.gz context/foo /test/all/
|
|
|
|
# Test environment replacement in the URL
|
|
ENV VERSION=v1.4.3
|
|
ADD https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/download/${VERSION}-static/docker-credential-gcr_linux_amd64-1.4.3.tar.gz /destination
|
|
|
|
# Test full url replacement
|
|
ENV URL=https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/download/v1.4.3/docker-credential-gcr_linux_386-1.4.3.tar.gz
|
|
ADD $URL /otherdestination
|