From 76a6b28b33ee223250b858837950f6d3801e59ff Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Wed, 8 Jan 2020 22:09:34 +0200 Subject: [PATCH] ci: use tmpfs for running tests Change-Id: I6278899bd158759c6fc0bceafd6a6c7244860f4a --- Jenkinsfile.public | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile.public b/Jenkinsfile.public index 6215b66db..093e22090 100644 --- a/Jenkinsfile.public +++ b/Jenkinsfile.public @@ -3,14 +3,14 @@ pipeline { docker { label 'main' image docker.build("storj-ci", "--pull https://github.com/storj/ci.git").id - args '-u root:root --cap-add SYS_PTRACE -v "/tmp/gomod":/go/pkg/mod -v "/tmp/npm":/tmp/npm' + args '-u root:root --cap-add SYS_PTRACE -v "/tmp/gomod":/go/pkg/mod -v "/tmp/npm":/npm --tmpfs "/tmp:exec,mode=777"' } } options { timeout(time: 26, unit: 'MINUTES') } environment { - NPM_CONFIG_CACHE = '/tmp/npm/cache' + NPM_CONFIG_CACHE = '/npm/cache' } stages { stage('Build') { @@ -30,7 +30,7 @@ pipeline { sh 'make -j3 build-packages' sh 'make install-sim' - sh 'cockroach start-single-node --insecure --store=\'/tmp/crdb\' --listen-addr=localhost:26257 --http-addr=localhost:8080 --cache 512MiB --max-sql-memory 512MiB --background' + sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26257 --http-addr=localhost:8080 --cache 512MiB --max-sql-memory 512MiB --background' } }