From dcf6730461cf839ad80d56b59b4f7dfbb34a859c Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Mon, 15 Aug 2022 15:59:01 +0100 Subject: [PATCH] HHH-15448 Upgrade testing image for MSSQL Server to 2019-latest --- Jenkinsfile | 2 +- docker_db.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a169c8436f..eed38d803d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -161,7 +161,7 @@ stage('Build') { state[buildEnv.tag]['containerName'] = "db2" break; case "mssql": - docker.image('mcr.microsoft.com/mssql/server:2017-CU13').pull() + docker.image('mcr.microsoft.com/mssql/server@sha256:f54a84b8a802afdfa91a954e8ddfcec9973447ce8efec519adf593b54d49bedf').pull() sh "./docker_db.sh mssql" state[buildEnv.tag]['containerName'] = "mssql" break; diff --git a/docker_db.sh b/docker_db.sh index 00849f0edd..d8dd77bb56 100755 --- a/docker_db.sh +++ b/docker_db.sh @@ -177,7 +177,8 @@ EOF mssql() { $CONTAINER_CLI rm -f mssql || true - $CONTAINER_CLI run --name mssql -d -p 1433:1433 -e "SA_PASSWORD=Hibernate_orm_test" -e ACCEPT_EULA=Y mcr.microsoft.com/mssql/server:2017-CU13 + #This sha256 matches a specific tag of mcr.microsoft.com/mssql/server:2019-latest : + $CONTAINER_CLI run --name mssql -d -p 1433:1433 -e "SA_PASSWORD=Hibernate_orm_test" -e ACCEPT_EULA=Y mcr.microsoft.com/mssql/server@sha256:f54a84b8a802afdfa91a954e8ddfcec9973447ce8efec519adf593b54d49bedf sleep 5 n=0 until [ "$n" -ge 5 ]