]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Use tmpfs option to Docker instead of mount.
authorJoshua Colp <jcolp@digium.com>
Tue, 19 Feb 2019 16:06:32 +0000 (16:06 +0000)
committerJoshua C. Colp <jcolp@digium.com>
Tue, 19 Feb 2019 16:23:02 +0000 (10:23 -0600)
Some tests require Asterisk to execute scripts which
are stored in /tmp. When mount is used for tmpfs there
is no ability to allow scripts to be executed from
that location.

This change switches to using tmpfs which can be told
to allow executables to be run from /tmp.

Change-Id: I0e598ca2b76af1f7f2d29f0da7b1731a214a291a

tests/CI/gates.jenkinsfile
tests/CI/periodics-daily.jenkinsfile
tests/CI/ref_debug.jenkinsfile
tests/CI/unittests.jenkinsfile

index ede335392b968c4c69063bb4020db5939b183d0a..8e24cf3f4e9dec0c51d6ba100bb4485fa4cfbdc0 100644 (file)
@@ -139,7 +139,7 @@ pipeline {
                                        def randomImage = env.DOCKER_REGISTRY + "/" + ri
                                        /* FYI... Jenkins takes care of mouting the workspace for the container */
                                        def dockerOptions = "--privileged --ulimit core=0 --ulimit nofile=10240 " +
-                                               " --mount type=tmpfs,tmpfs-size=1g,dst=/tmp -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
+                                               " --tmpfs /tmp:exec,size=1G -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
                                                " --entrypoint=''"
                                        def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
                                        def outputdir = "tests/CI/output/Testsuite"
index 26c9db9a2155e74b30df90af9f99a36c2d3b7945..ae762f8e826df3a654eecd637fea61fec643063f 100644 (file)
@@ -50,7 +50,7 @@ pipeline {
                                        def ri = images[(int)r]
                                        def randomImage = env.DOCKER_REGISTRY + "/" + ri
                                        def dockerOptions = "--privileged --ulimit core=0 --ulimit nofile=10240 " +
-                                               " --mount type=tmpfs,tmpfs-size=1g,dst=/tmp -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
+                                               " --tmpfs /tmp:exec,size=1G -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
                                                " --entrypoint=''"
                                        def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
                                        def outputdir = "tests/CI/output/Testsuite"
index f991349737bb37008f0130e49351179db9409349..0e0f49c1bda67cb7db4a7ccaf2b1ebece0cbd4ec 100644 (file)
@@ -50,7 +50,7 @@ pipeline {
                                        def ri = images[(int)r]
                                        def randomImage = env.DOCKER_REGISTRY + "/" + ri
                                        def dockerOptions = "--privileged --ulimit core=0 --ulimit nofile=10240 " +
-                                               " --mount type=tmpfs,tmpfs-size=1g,dst=/tmp -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
+                                               " --tmpfs /tmp:exec,size=1G -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
                                                " --entrypoint=''"
                                        def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
                                        def outputdir = "tests/CI/output/Testsuite"
index a7a6c4327d1138557c83e836fad3e08e19ff3a86..504313996a93fb5f9360569e7efe5aada51ebe84 100644 (file)
@@ -141,7 +141,7 @@ pipeline {
                                        def randomImage = env.DOCKER_REGISTRY + "/" + ri;
                                        def bt = env.BUILD_TAG.replaceAll(/[^a-zA-Z0-9_.-]/, '-')
                                        def dockerOptions = "--privileged --ulimit core=0 --ulimit nofile=10240 " +
-                                               " --mount type=tmpfs,tmpfs-size=1g,dst=/tmp -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
+                                               " --tmpfs /tmp:exec,size=1G -v /srv/jenkins:/srv/jenkins:rw -v /srv/cache:/srv/cache:rw " +
                                                " --entrypoint='' --name ${bt}-build"
                                        def outputdir = "tests/CI/output/UnitTests"