Commit 45f31187 by Arve Knudsen Committed by GitHub

devenv: Upgrade MSSQL Docker image (#28749)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent cfbbab9b
FROM mcr.microsoft.com/mssql/server:2017-CU4-ubuntu
FROM mcr.microsoft.com/mssql/server:2019-CU8-ubuntu-18.04
WORKDIR /usr/setup
COPY . /usr/setup
RUN chmod +x /usr/setup/setup.sh
CMD /bin/bash ./entrypoint.sh
\ No newline at end of file
COPY setup.sh setup.sql.template entrypoint.sh ./
USER root
RUN chmod +x setup.sh
RUN chown -R mssql ./
USER mssql
CMD /bin/bash ./entrypoint.sh
#/bin/bash
set -eo pipefail
#wait for the SQL Server to come up
sleep 15s
......@@ -9,4 +10,4 @@ cat /usr/setup/setup.sql.template | awk '{
gsub(/%%PWD%%/,"'$MSSQL_PASSWORD'")
}1' > /usr/setup/setup.sql
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $MSSQL_SA_PASSWORD -d master -i /usr/setup/setup.sql
\ No newline at end of file
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $MSSQL_SA_PASSWORD -d master -i /usr/setup/setup.sql
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment