Update SQL version to SQL 2022 CU22.

This commit is contained in:
Mark Kincaid
2026-01-30 16:00:22 -08:00
parent 5941e830d2
commit 4cca8a99d0
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/mssql/server:2022-CU12-ubuntu-22.04
FROM mcr.microsoft.com/mssql/server:2022-CU22-ubuntu-22.04
LABEL com.bitwarden.product="bitwarden"
@@ -19,7 +19,7 @@ RUN chmod +x /entrypoint.sh \
RUN /opt/mssql/bin/mssql-conf set telemetry.customerfeedback false
HEALTHCHECK --start-period=120s --timeout=3s CMD /opt/mssql-tools/bin/sqlcmd \
-S localhost -U sa -P ${SA_PASSWORD} -Q "SELECT 1" || exit 1
HEALTHCHECK --start-period=120s --timeout=3s CMD /opt/mssql-tools18/bin/sqlcmd \
-S localhost -U sa -P ${SA_PASSWORD} -C -Q "SELECT 1" || exit 1
ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -14,7 +14,7 @@ do
export now=$(date +%Y%m%d_%H%M%S)
# Do a new backup
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${SA_PASSWORD} -i /backup-db.sql
/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P ${SA_PASSWORD} -C -i /backup-db.sql
# Delete backup files older than 30 days
grep -B1 "BACKUP DATABASE successfully" /var/opt/mssql/log/errorlog | grep -q _$now.BAK &&