Skip to content

Commit

Permalink
ik heb gesqlt
Browse files Browse the repository at this point in the history
  • Loading branch information
philipsens committed Aug 22, 2024
1 parent ec7fb69 commit a346b9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dbms/MsSqlServer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04

COPY install-scripts/ /init/

ENV SA_PASSWORD=MssqlPass123 \
ENV MSSQL_SA_PASSWORD=MssqlPass123 \
ACCEPT_EULA=Y \
MSSQL_AGENT_ENABLED=true \
MSSQL_RPC_PORT=135 \
Expand All @@ -12,4 +12,4 @@ EXPOSE 1433
EXPOSE 135
EXPOSE 51000

CMD /bin/bash /init/dockerInit.sh
CMD ["/bin/bash", "/init/dockerInit.sh"]
2 changes: 1 addition & 1 deletion dbms/MsSqlServer/install-scripts/create_user.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ print 'enable jdbc XA support';
EXEC sp_sqljdbc_xa_install

print 'create user testiaf_user';
CREATE LOGIN testiaf_user WITH PASSWORD = 'testiaf_user00';
CREATE LOGIN testiaf_user WITH PASSWORD = 'testiaf_user00', CHECK_POLICY=OFF;
GO

CREATE USER testiaf_user FOR LOGIN testiaf_user WITH DEFAULT_SCHEMA=[dbo];
Expand Down
2 changes: 1 addition & 1 deletion dbms/MsSqlServer/install-scripts/dockerInit.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ setup() {
echo "Running create_user script"
for i in {1..120};
do
if /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i /init/create_user.sql
if /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i /init/create_user.sql -No
then
echo "create_user completed"
break
Expand Down

0 comments on commit a346b9c

Please sign in to comment.