#!/bin/bash # Run the Docker tests for the SDP # Note that this file is expecting to be mapped into the root of the workspace # and with the sdp directory in the same root. # So workspace view should look something like: # View: # //guest/perforce_software/sdp/main/... //myws.sdp/sdp/... # //guest/perforce_software/sdp/main/test/* //myws.sdp/* # Perforce version being tested P4VER=17.1 oses="" # Allow the specific platform to be specified via parameter if [ ,"$1" = ,"ubuntu" ] ; then oses="ubuntu" elif [ ,"$1" = ,"centos" ] ; then oses="centos6" elif [ ,"$1" = ,"centos6" ] ; then oses="centos6" elif [ ,"$1" = ,"centos7" ] ; then oses="centos7" else oses="ubuntu centos6 centos7" oses="centos6" fi echo Building SDP docker containers # docker build --rm=true -t=ansible-test -f docker/Dockerfile.ansible ./docker for os in $oses do docker_dir=./docker dockerfile_base=${docker_dir}/Dockerfile.${os}.base dockerfile_sdp=${docker_dir}/Dockerfile.${os}.sdp dockerfile_test=${docker_dir}/Dockerfile.${os}.test # Build the base Docker for the OS, and then the SDP variant on top docker build --rm=true -t=perforce/${os}-base -f ${dockerfile_base} ${docker_dir} docker build --rm=true -t=perforce/${os}-sdp -f ${dockerfile_sdp} ${docker_dir} docker build --rm=true -t=perforce/${os}-test -f ${dockerfile_test} ${docker_dir} done
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 25116 | Robert Cowham | Docker compose tests starting to get there... | ||
#4 | 23433 | Robert Cowham | Got it working with basic ssh stuff if sshd run manually on a box | ||
#3 | 22485 | Robert Cowham |
Update python to 3.5 Refactor tests to simplify workspace (no mapping into root), and to allow easy setup |
||
#2 | 20827 | Robert Cowham | Default to centos6 for nowç | ||
#1 | 20813 | Robert Cowham | Using docker-compose |