Skip to content

Commit 003c003

Browse files
committed
This is the right fix for LR problem
1 parent 1eb0397 commit 003c003

5 files changed

Lines changed: 13 additions & 14 deletions

File tree

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
FROM mcr.microsoft.com/mssql/server:2019-CTP3.0-ubuntu
2-
3-
COPY . /
4-
5-
RUN chmod +x /db-init.sh
1+
FROM mcr.microsoft.com/mssql/rhel/server:2019-CTP3.1
2+
COPY . /
3+
4+
RUN chmod +x /db-init.sh
65
CMD /bin/bash ./entrypoint.sh

samples/containers/replication/db1/db-init.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ mkdir /var/opt/mssql/ReplData/
55
chown mssql /var/opt/mssql/ReplData/
66
chgrp mssql /var/opt/mssql/ReplData/
77

8-
98
echo "running set up script"
109
#run the setup script to create the DB and the schema in the DB
11-
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i db-init.sql
10+
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i db-init.sql

samples/containers/replication/db1/entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
#You need a non-terminating process to keep the container alive.
33
#In a series of commands separated by single ampersands the commands to the left of the right-most ampersand are run in the background.
44
#So - if you are executing a series of commands simultaneously using single ampersands, the command at the right-most position needs to be non-terminating
5-
/db-init.sh & /opt/mssql/bin/sqlservr
5+
/db-init.sh & /opt/mssql/bin/sqlservr
6+
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM mcr.microsoft.com/mssql/server:2019-CTP3.0-ubuntu
2-
3-
COPY . /
4-
5-
RUN chmod +x /db-init.sh
1+
FROM mcr.microsoft.com/mssql/rhel/server:2019-CTP3.1
2+
3+
COPY . /
4+
5+
RUN chmod +x /db-init.sh
66
CMD /bin/bash ./entrypoint.sh

samples/containers/replication/db2/db-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ sleep 20s
33

44
echo "running set up script"
55
#run the setup script to create the DB and the schema in the DB
6-
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i db-init.sql
6+
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i db-init.sql

0 commit comments

Comments
 (0)