-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exeucte tests from local / implemented tags, build-args / added missi…
…ng tests
- Loading branch information
Showing
13 changed files
with
84 additions
and
96 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
|
||
docker_build('testing-image', './..', dockerfile='Dockerfile') | ||
|
||
k8s_yaml('docker-build.yaml') | ||
k8s_resource('test-docker-build', resource_deps=['wedding']) | ||
local_resource ('test docker build', | ||
'time timeout 60 bash docker-build.sh', | ||
deps=['..'], | ||
resource_deps=['wedding'], | ||
allow_parallel=True, | ||
) | ||
|
||
k8s_yaml('docker-pull-tag-push.yaml') | ||
k8s_resource('test-docker-pull-tag-push', resource_deps=['wedding']) | ||
local_resource ('test docker pull tag push', | ||
'time timeout 60 bash docker-pull-tag-push.sh', | ||
deps=['..'], | ||
resource_deps=['wedding'], | ||
allow_parallel=True, | ||
) | ||
|
||
local_resource ('test tilt ci', | ||
'bash tilt-ci.sh', | ||
'time timeout 180 bash tilt-ci.sh', | ||
deps=['..'], | ||
resource_deps=['wedding'], | ||
allow_parallel=True, | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!bash | ||
set -uexo pipefail | ||
export DOCKER_HOST=tcp://127.0.0.1:12376 | ||
until docker version; do sleep 1; done | ||
|
||
docker build -t wedding-build-test-a -t wedding-build-test-b ./docker -f ./docker/dir/Dockerfile | ||
|
||
if docker build ./docker-broken; then echo "this should fail"; false; else echo "exit code propagated"; fi | ||
|
||
echo "done" |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!bash | ||
set -uexo pipefail | ||
export DOCKER_HOST=tcp://127.0.0.1:12376 | ||
until docker version; do sleep 1; done | ||
|
||
docker pull mirror.gcr.io/library/alpine | ||
if docker pull mirror.gcr.io/library/missing; then echo "this should fail"; false; else echo "exit code propagated"; fi | ||
|
||
docker tag mirror.gcr.io/library/alpine wedding-registry:5000/test-push:alpine | ||
if docker tag missing b; then echo "this should fail"; false; else echo "exit code propagated"; fi | ||
|
||
docker push wedding-registry:5000/test-push:alpine | ||
if docker push missing; then echo "this should fail"; false; else echo "exit code propagated"; fi | ||
|
||
echo "done" |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!bash | ||
set -uexo pipefail | ||
|
||
export DOCKER_HOST=tcp://127.0.0.1:12376 | ||
until docker version; do sleep 1; done | ||
|
||
cd tilt | ||
|
||
timeout 120 tilt ci --port 0 | ||
tilt down | ||
tilt ci --port 0 | ||
tilt down |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
FROM nginx | ||
|
||
COPY index.html /usr/share/nginx/html/index.html | ||
ARG ECHO | ||
RUN echo $ECHO > /usr/share/nginx/html/index.html |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
FROM nginx | ||
FROM nginx AS http | ||
|
||
COPY index.html /usr/share/nginx/html/index.html | ||
|
||
FROM alpine as cli |