Skip to content

Commit 645262b

Browse files
authored
CORE-69: update sbt and scala-sbt docker images (#3332)
* update sbt and scala-sbt docker images * sbt 1.11.1
1 parent 95a1f3c commit 645262b

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

.github/workflows/consumer_contract_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
-v jar-cache:/root/.ivy \
137137
-v jar-cache:/root/.ivy2 \
138138
-w /working \
139-
sbtscala/scala-sbt:eclipse-temurin-17.0.14_7_1.10.11_2.13.16 \
139+
sbtscala/scala-sbt:eclipse-temurin-17.0.15_6_1.11.1_2.13.16 \
140140
bash -c "git config --global --add safe.directory /working && sbt -J-Xmx2g -J-XX:+UseG1GC \"project pact4s\" clean \"testOnly org.broadinstitute.dsde.rawls.consumer.*\""
141141
142142
- name: Output consumer contract as non-breaking base64 string

.github/workflows/verify_consumer_pacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ jobs:
328328
-e POSTGRES_READ_URL=localhost:5432 \
329329
-e POSTGRES_USERNAME=rawls-test \
330330
-e POSTGRES_PASSWORD=rawls-test \
331-
sbtscala/scala-sbt:eclipse-temurin-17.0.14_7_1.10.11_2.13.16 \
331+
sbtscala/scala-sbt:eclipse-temurin-17.0.15_6_1.11.1_2.13.16 \
332332
bash -c "git config --global --add safe.directory /working && sbt -J-Xmx2g -J-XX:+UseG1GC \"project pact4s\" clean coverage \"testOnly org.broadinstitute.dsde.rawls.provider.*\" coverageReport"
333333
334334
can-i-deploy: # The can-i-deploy job will run as a result of a Rawls PR. It reports the pact verification statuses on all deployed environments.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TODO: Replace build script with multi-stage Dockerfile that builds its own JAR
2-
# FROM sbtscala/scala-sbt:eclipse-temurin-17.0.14_7_1.10.11_2.13.16 as jar-builder
2+
# FROM sbtscala/scala-sbt:eclipse-temurin-17.0.15_6_1.11.1_2.13.16 as jar-builder
33
# ...build JAR...
44
# FROM us.gcr.io/broad-dsp-gcr-public/base/jre:17-debian
55
# COPY --from=jar-builder ./rawls*.jar /rawls

automation/Dockerfile-tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM sbtscala/scala-sbt:eclipse-temurin-17.0.14_7_1.10.11_2.13.16
1+
FROM sbtscala/scala-sbt:eclipse-temurin-17.0.15_6_1.11.1_2.13.16
22

33
COPY src /app/src
44
COPY test.sh /app

automation/project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 1.10.11
1+
sbt.version = 1.11.1

docker/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function make_jar()
9999
# TODO: DOCKER_TAG hack until JAR build migrates to Dockerfile. Tell SBT to name the JAR
100100
# `rawls-assembly-local-SNAP.jar` instead of including the commit hash. Otherwise we get
101101
# an explosion of JARs that all get copied to the image; and which one runs is undefined.
102-
DOCKER_RUN="$DOCKER_RUN -e DOCKER_TAG=local -e GIT_COMMIT -e BUILD_NUMBER -v $PWD:/working -v sbt-cache:/root/.sbt -v jar-cache:/root/.ivy2 -v coursier-cache:/root/.cache/coursier sbtscala/scala-sbt:eclipse-temurin-17.0.14_7_1.10.11_2.13.16 /working/docker/clean_install.sh /working"
102+
DOCKER_RUN="$DOCKER_RUN -e DOCKER_TAG=local -e GIT_COMMIT -e BUILD_NUMBER -v $PWD:/working -v sbt-cache:/root/.sbt -v jar-cache:/root/.ivy2 -v coursier-cache:/root/.cache/coursier sbtscala/scala-sbt:eclipse-temurin-17.0.15_6_1.11.1_2.13.16 /working/docker/clean_install.sh /working"
103103

104104
JAR_CMD=$($DOCKER_RUN 1>&2)
105105
EXIT_CODE=$?
@@ -116,7 +116,7 @@ function artifactory_push()
116116
ARTIFACTORY_USERNAME=dsdejenkins
117117
ARTIFACTORY_PASSWORD=$(docker run -e VAULT_TOKEN=$VAULT_TOKEN broadinstitute/dsde-toolbox vault read -field=password secret/dsp/accts/artifactory/dsdejenkins)
118118
echo "Publishing to artifactory..."
119-
docker run --rm -e GIT_HASH=$GIT_HASH -v $PWD:/$PROJECT -v sbt-cache:/root/.sbt -v jar-cache:/root/.ivy2 -v coursier-cache:/root/.cache/coursier -w="/$PROJECT" -e ARTIFACTORY_USERNAME=$ARTIFACTORY_USERNAME -e ARTIFACTORY_PASSWORD=$ARTIFACTORY_PASSWORD sbtscala/scala-sbt:eclipse-temurin-17.0.14_7_1.10.11_2.13.16 /$PROJECT/core/src/bin/publishSnapshot.sh
119+
docker run --rm -e GIT_HASH=$GIT_HASH -v $PWD:/$PROJECT -v sbt-cache:/root/.sbt -v jar-cache:/root/.ivy2 -v coursier-cache:/root/.cache/coursier -w="/$PROJECT" -e ARTIFACTORY_USERNAME=$ARTIFACTORY_USERNAME -e ARTIFACTORY_PASSWORD=$ARTIFACTORY_PASSWORD sbtscala/scala-sbt:eclipse-temurin-17.0.15_6_1.11.1_2.13.16 /$PROJECT/core/src/bin/publishSnapshot.sh
120120
}
121121

122122
function docker_cmd()

docker/build_jar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
set -e
77

88
# make jar. cache sbt dependencies. capture output and stop db before returning.
9-
docker run --rm -e DOCKER_TAG -e GIT_COMMIT -e BUILD_NUMBER -v $PWD:/working -v sbt-cache:/root/.sbt -v jar-cache:/root/.ivy2 -v coursier-cache:/root/.cache/coursier sbtscala/scala-sbt:eclipse-temurin-17.0.14_7_1.10.11_2.13.16 /working/docker/clean_install.sh /working
9+
docker run --rm -e DOCKER_TAG -e GIT_COMMIT -e BUILD_NUMBER -v $PWD:/working -v sbt-cache:/root/.sbt -v jar-cache:/root/.ivy2 -v coursier-cache:/root/.cache/coursier sbtscala/scala-sbt:eclipse-temurin-17.0.15_6_1.11.1_2.13.16 /working/docker/clean_install.sh /working
1010
EXIT_CODE=$?
1111

1212
if [ $EXIT_CODE != 0 ]; then

local-dev/templates/docker-rsync-local-rawls.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ start_server () {
9696
-e JAVA_OPTS="$JAVA_OPTS" \
9797
-e GOOGLE_APPLICATION_CREDENTIALS='/etc/rawls-account.json' \
9898
-e GIT_HASH=$GIT_HASH \
99-
sbtscala/scala-sbt:eclipse-temurin-17.0.14_7_1.10.11_2.13.16 \
99+
sbtscala/scala-sbt:eclipse-temurin-17.0.15_6_1.11.1_2.13.16 \
100100
bash -c "git config --global --add safe.directory /app && sbt clean \~reStart"
101101

102102
docker cp config/rawls-account.pem rawls-sbt:/etc/rawls-account.pem

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.10.11
1+
sbt.version=1.11.1

0 commit comments

Comments
 (0)