mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Merge pull request #583 from microsoft/rgward
Fixed replication container files
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
FROM mcr.microsoft.com/mssql/server:vNext-CTP2.0-ubuntu
|
||||
|
||||
COPY . /
|
||||
|
||||
RUN chmod +x /db-init.sh
|
||||
FROM mcr.microsoft.com/mssql/rhel/server:2019-CTP3.1
|
||||
COPY . /
|
||||
|
||||
RUN chmod +x /db-init.sh
|
||||
CMD /bin/bash ./entrypoint.sh
|
||||
@@ -5,7 +5,6 @@ mkdir /var/opt/mssql/ReplData/
|
||||
chown mssql /var/opt/mssql/ReplData/
|
||||
chgrp mssql /var/opt/mssql/ReplData/
|
||||
|
||||
|
||||
echo "running set up script"
|
||||
#run the setup script to create the DB and the schema in the DB
|
||||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i db-init.sql
|
||||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i db-init.sql
|
||||
|
||||
@@ -2,4 +2,5 @@
|
||||
#You need a non-terminating process to keep the container alive.
|
||||
#In a series of commands separated by single ampersands the commands to the left of the right-most ampersand are run in the background.
|
||||
#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
|
||||
/db-init.sh & /opt/mssql/bin/sqlservr
|
||||
/db-init.sh & /opt/mssql/bin/sqlservr
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM mcr.microsoft.com/mssql/server:vNext-CTP2.0-ubuntu
|
||||
|
||||
COPY . /
|
||||
|
||||
RUN chmod +x /db-init.sh
|
||||
FROM mcr.microsoft.com/mssql/rhel/server:2019-CTP3.1
|
||||
|
||||
COPY . /
|
||||
|
||||
RUN chmod +x /db-init.sh
|
||||
CMD /bin/bash ./entrypoint.sh
|
||||
@@ -3,4 +3,4 @@ sleep 20s
|
||||
|
||||
echo "running set up script"
|
||||
#run the setup script to create the DB and the schema in the DB
|
||||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i db-init.sql
|
||||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i db-init.sql
|
||||
|
||||
Reference in New Issue
Block a user