Skip to content

Commit f1cd8f3

Browse files
authored
Finish hotfix/init_mode_fix
Change type of env INIT_MODE from 'empty' to empty
2 parents ddfe0e6 + 6eb91b7 commit f1cd8f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ ENV SA_PASSWORD=IMISuserP@s
66
ENV DB_USER_PASSWORD=IMISuserP@s
77
ENV DB_NAME=IMIS
88
ENV DB_USER=IMISUser
9+
ENV INIT_MODE=empty
910
RUN mkdir -p /app
1011
COPY script/* /app/
1112
COPY sql /app/sql
1213
WORKDIR /app
13-
ENV INIT_MODE='empty'
1414
RUN chmod a+x /app/*.sh
15-
CMD /bin/bash ./entrypoint.sh
15+
CMD /bin/bash ./entrypoint.sh

script/run-initialization.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [ ${data} -eq "0" ]; then
2222
#/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P $SA_PASSWORD -Q "DROP DATABASE IF EXISTS $DB_NAME"
2323
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P $SA_PASSWORD -Q "CREATE DATABASE $DB_NAME"
2424

25-
if [ "${INIT_MODE}" = "demo" ]; then
25+
if [ "$INIT_MODE" = "demo" ]; then
2626
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P $SA_PASSWORD -i output/fullDemoDatabase.sql -d $DB_NAME | grep . | uniq -c
2727
else
2828
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P $SA_PASSWORD -i output/fullEmptyDatabase.sql -d $DB_NAME | grep . | uniq -c

0 commit comments

Comments
 (0)