Skip to content

Commit

Permalink
Merge pull request #4329 from esl/pin-mssql-docker-image
Browse files Browse the repository at this point in the history
Pin mssql docker version
  • Loading branch information
chrzaszcz authored Jul 24, 2024
2 parents 65aadba + 6ffa354 commit ed459a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ containers:
- ENV_FILE_DHSERVER_DATA: "__MIM_DHSERVER__"
entrypoint: *ENTRYPOINT
- &mssql_container
image: mcr.microsoft.com/mssql/server
image: mcr.microsoft.com/mssql/server:__MSSQL_VERSION__
environment:
- ACCEPT_EULA: Y
- SA_PASSWORD: "mongooseim_secret+ESL123"
Expand Down
1 change: 1 addition & 0 deletions tools/circle-generate-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ sed -e "s/__MYSQL_CNF__/${MYSQL_CNF}/" \
-e "s/__PGSQL_VERSION__/${PGSQL_VERSION}/g" \
-e "s/__MSSQL_SQL__/${MSSQL_SQL}/" \
-e "s/__MSSQL_SETUP__/${MSSQL_SETUP}/" \
-e "s/__MSSQL_VERSION__/${MSSQL_VERSION}/" \
-e "s/__REDIS_VERSION__/${REDIS_VERSION}/" \
-e "s/__LDAP_SCHEMA__/${LDAP_SCHEMA}/" \
-e "s/__LDAP_SETUP__/${LDAP_SETUP}/" \
Expand Down
4 changes: 4 additions & 0 deletions tools/db-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ MYSQL_VERSION_DEFAULT="8.0.30"

PGSQL_VERSION_DEFAULT=latest

MSSQL_VERSION_DEFAULT="2022-CU12-ubuntu-22.04"

LDAP_VERSION_DEFAULT="1.5.0"

REDIS_VERSION_DEFAULT="7.2.1"
Expand All @@ -25,6 +27,8 @@ MYSQL_VERSION=${MYSQL_VERSION:-$MYSQL_VERSION_DEFAULT}

PGSQL_VERSION=${PGSQL_VERSION:-$PGSQL_VERSION_DEFAULT}

MSSQL_VERSION=${MSSQL_VERSION:-$MSSQL_VERSION_DEFAULT}

LDAP_VERSION=${LDAP_VERSION:-$LDAP_VERSION_DEFAULT}

REDIS_VERSION=${REDIS_VERSION:-$REDIS_VERSION_DEFAULT}
Expand Down
2 changes: 1 addition & 1 deletion tools/setup-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function setup_db(){
# Error 87(The parameter is incorrect.) occurred while opening file '/var/opt/mssql/data/master.mdf'
MSSQL_SQL=$(cat32 priv/mssql2012.sql)
MSSQL_SETUP=$(cat32 tools/docker-setup-mssql.sh)
IMAGE=mcr.microsoft.com/mssql/server
IMAGE=mcr.microsoft.com/mssql/server:$MSSQL_VERSION
$DOCKER run -d --name=$NAME \
-p $MSSQL_PORT:1433 \
--user root \
Expand Down

0 comments on commit ed459a8

Please sign in to comment.