mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 13:34:00 +02:00
* chore: add workflows for pr tests * fix unit tests * fix formatting * chore: fix gobuild * change minikube script * chore: fix lint install script * chore: ignore and fix tests * fix lint and run gofmt * lint fixes * k8s executor image only * fix Makefile * fix travis env variables * more info on k8s tests * fix travis run * fix * fix * fix * fix log * some more changes * increase timeout * delete travis.yml and fix multiple copy tests * fix registry mirror * fix lint * add concurency * last attemot to fix k8 integrations * diff id for diff workflows
35 lines
1.1 KiB
Plaintext
35 lines
1.1 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 ignored 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=v2.1.0
|
|
ADD https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/download/${VERSION}/docker-credential-gcr_darwin_amd64-2.1.0.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
|