Merge "Fix gate to use world writeable docker socket"

This commit is contained in:
Jenkins 2016-03-27 23:42:47 +00:00 committed by Gerrit Code Review
commit 90321d0497
2 changed files with 14 additions and 17 deletions

View File

@ -26,3 +26,6 @@
- name: Run node setup - name: Run node setup
shell: sudo /tmp/setup.sh shell: sudo /tmp/setup.sh
- name: Changing permissions of docker socket to 666
shell: sudo chmod 0666 /run/docker.sock

28
tox.ini
View File

@ -42,61 +42,56 @@ commands =
[testenv:build-centos-binary] [testenv:build-centos-binary]
whitelist_externals = find whitelist_externals = find
bash bash
sudo
setenv = setenv =
DOCKER_BUILD_TEST=1 DOCKER_BUILD_TEST=1
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.BuildTestCentosBinary testr run test_build.BuildTestCentosBinary
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
[testenv:build-centos-source] [testenv:build-centos-source]
whitelist_externals = find whitelist_externals = find
bash bash
sudo
setenv = setenv =
DOCKER_BUILD_TEST=1 DOCKER_BUILD_TEST=1
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.BuildTestCentosSource testr run test_build.BuildTestCentosSource
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
[testenv:build-ubuntu-source] [testenv:build-ubuntu-source]
whitelist_externals = find whitelist_externals = find
bash bash
sudo
setenv = setenv =
DOCKER_BUILD_TEST=1 DOCKER_BUILD_TEST=1
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.BuildTestUbuntuSource testr run test_build.BuildTestUbuntuSource
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
[testenv:build-oraclelinux-binary] [testenv:build-oraclelinux-binary]
whitelist_externals = find whitelist_externals = find
bash bash
sudo
setenv = setenv =
DOCKER_BUILD_TEST=1 DOCKER_BUILD_TEST=1
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.BuildTestOracleLinuxBinary testr run test_build.BuildTestOracleLinuxBinary
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
[testenv:build-oraclelinux-source] [testenv:build-oraclelinux-source]
whitelist_externals = find whitelist_externals = find
bash bash
sudo
setenv = setenv =
DOCKER_BUILD_TEST=1 DOCKER_BUILD_TEST=1
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.BuildTestOracleLinuxSource testr run test_build.BuildTestOracleLinuxSource
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
[testenv:deploy-centos-binary] [testenv:deploy-centos-binary]
@ -108,7 +103,7 @@ setenv =
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.DeployTestCentosBinary testr run test_build.DeployTestCentosBinary
sudo {toxinidir}/tools/deploy_aio.sh centos binary sudo {toxinidir}/tools/deploy_aio.sh centos binary
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
@ -121,7 +116,7 @@ setenv =
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.DeployTestCentosSource testr run test_build.DeployTestCentosSource
sudo {toxinidir}/tools/deploy_aio.sh centos source sudo {toxinidir}/tools/deploy_aio.sh centos source
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
@ -134,7 +129,7 @@ setenv =
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.DeployTestOracleLinuxBinary testr run test_build.DeployTestOracleLinuxBinary
sudo {toxinidir}/tools/deploy_aio.sh oraclelinux binary sudo {toxinidir}/tools/deploy_aio.sh oraclelinux binary
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
@ -147,7 +142,7 @@ setenv =
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.DeployTestOracleLinuxSource testr run test_build.DeployTestOracleLinuxSource
sudo {toxinidir}/tools/deploy_aio.sh oraclelinux source sudo {toxinidir}/tools/deploy_aio.sh oraclelinux source
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
@ -160,20 +155,19 @@ setenv =
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.DeployTestUbuntuSource testr run test_build.DeployTestUbuntuSource
sudo {toxinidir}/tools/deploy_aio.sh ubuntu source sudo {toxinidir}/tools/deploy_aio.sh ubuntu source
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
[testenv:deploy-multinode-ubuntu-source] [testenv:deploy-multinode-ubuntu-source]
whitelist_externals = find whitelist_externals = find
bash bash
sudo
setenv = setenv =
DOCKER_BUILD_TEST=1 DOCKER_BUILD_TEST=1
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi" bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.BuildTestUbuntuSource testr run test_build.BuildTestUbuntuSource
{toxinidir}/tools/dump_info.sh {toxinidir}/tools/dump_info.sh
[testenv:genconfig] [testenv:genconfig]