summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2016-08-21 12:22:42 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2016-08-21 12:31:01 +0200
commit535af95d7d22b1781f21e0483a8d16733d511ab8 (patch)
treed4ffe176cfa7473150878776cba88ee3a540b30a /docker/Dockerfile
parent9b830f30a6e93643e4aa1312f9439e34f2d74530 (diff)
Protect again changes of unix permissions
It adds chmods in Dockerfile to ensure python and bash scripts can be executed. Change-Id: I9d75e87fcb1eb2e6fa37039fa5a070ef21cf0efb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index ce3f4ce51..a14bdc44e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -92,6 +92,9 @@ RUN pip install -r ${repos_dir}/functest/docker/requirements.pip
RUN pip install -r ${repos_dir}/rally/requirements.txt
RUN pip install -r ${repos_dir}/tempest/requirements.txt
+RUN find ${repos_dir}/functest -name "*.py" |xargs grep __main__ |cut -d\: -f 1 |xargs chmod -c 755
+RUN find ${repos_dir}/functest -name "*.sh" |xargs grep \#\! |cut -d\: -f 1 |xargs chmod -c 755
+
RUN /bin/bash ${repos_dir}/parser/tests/parser_install.sh ${repos_dir}
RUN ${repos_dir}/rally/install_rally.sh --yes