Skip to content

Commit

Permalink
Jenkinsfile.premerge: align with Jenkinsfile.verify
Browse files Browse the repository at this point in the history
Change aligns docker args and cockroach instance settings with
Jenkinsfile.verify.

Change-Id: Ifcac9e63fd818ea33621c40654c77ba09814e360
  • Loading branch information
mniewrzal committed Apr 10, 2024
1 parent 95d8a25 commit 7d886ad
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Jenkinsfile.premerge
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pipeline {
label 'main'
image 'storjlabs/ci:latest'
alwaysPull true
args '-u root:root --cap-add SYS_PTRACE -v "/tmp/gomod":/go/pkg/mod -v "/tmp/npm":/npm --tmpfs "/tmp:exec,mode=777"'
args '-u root:root --cap-add SYS_PTRACE -v "/tmp/gomod":/go/pkg/mod -v "/tmp/npm":/npm -v /tmp/golangci-lint:/root/.cache/golangci-lint -v /tmp/gocache:/root/.cache/go-build --tmpfs "/tmp:exec,mode=777"'
}
}
options {
Expand Down Expand Up @@ -43,7 +43,8 @@ pipeline {
}
}
}
stage('Build Web') {

stage('Build Web') {
// The build code depends on the following assets being loaded.
parallel {
stage('web/satellite') {
Expand Down Expand Up @@ -113,11 +114,7 @@ pipeline {
steps {
sh 'service postgresql start'
dir('.build') {
sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26256 --http-addr=localhost:8086 --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:8087 --cache 512MiB --max-sql-memory 512MiB --background'
sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26258 --http-addr=localhost:8088 --cache 512MiB --max-sql-memory 512MiB --background'
sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26259 --http-addr=localhost:8089 --cache 512MiB --max-sql-memory 512MiB --background'
sh 'cockroach start-single-node --insecure --store=type=mem,size=2GiB --listen-addr=localhost:26260 --http-addr=localhost:8090 --cache 256MiB --max-sql-memory 256MiB --background'
sh 'cockroach start-single-node --insecure --store=type=mem,size=4GiB --listen-addr=localhost:26257 --http-addr=localhost:8087 --cache 1024MiB --max-sql-memory 1024MiB --background'
}
}
}
Expand Down

0 comments on commit 7d886ad

Please sign in to comment.