File tree Expand file tree Collapse file tree 1 file changed +6
-19
lines changed
Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change 22
33TAG=${1:- .}
44
5- # Start a local registry, to which we push the images built in this test, and from which they will be consumed in the test
6- docker run -d -p 5000:5000 --restart always --name registry registry:2 || true
7-
85echo Testing version $TAG
96
10- docker build --build-arg=BASE_IMAGE_TAG=${TAG} -t localhost:5000/ppiper/node-browsers:latest .
11- docker push localhost:5000/ppiper/node-browsers:latest
12-
13- git clone https://github.com/piper-validation/cloud-s4-sdk-book.git -b validate-node-browsers test-project
14- pushd test-project
15-
16- docker run -v //var/run/docker.sock:/var/run/docker.sock -v $( pwd) :/workspace -v /tmp \
17- -e BRANCH_NAME=master \
18- -e CASC_JENKINS_CONFIG=/workspace/jenkins.yml -e HOST=$( hostname) \
19- ppiper/jenkinsfile-runner
20-
21- popd
7+ docker build --build-arg=BASE_IMAGE_TAG=${TAG} -t localhost:5000/ppiper/node-browsers:${TAG} .
228
23- function cleanup {
24- rm -rf test-project
25- }
26- trap cleanup EXIT
9+ docker run --rm localhost:5000/ppiper/node-browsers:${TAG} chromium --version
10+ docker run --rm localhost:5000/ppiper/node-browsers:${TAG} firefox --version
11+ docker run --rm localhost:5000/ppiper/node-browsers:${TAG} java -version
12+ docker run --rm localhost:5000/ppiper/node-browsers:${TAG} node --version
13+ docker run --rm localhost:5000/ppiper/node-browsers:${TAG} cat /etc/os-release
You can’t perform that action at this time.
0 commit comments