-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/Resgrid/Core into develop
- Loading branch information
Showing
15 changed files
with
134 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. | ||
ARG BUILD_VERSION=3.5.0 | ||
|
||
# Choose ubuntu version | ||
FROM mcr.microsoft.com/mssql/server:2019-CU13-ubuntu-20.04 | ||
|
||
# Create app directory | ||
WORKDIR /usr/src/app | ||
|
||
# Copy initialization scripts | ||
COPY . /usr/src/app | ||
COPY create-databases.sql /usr/src/app/create-databases.sql | ||
COPY initdbs.sh /usr/src/app/initdbs.sh | ||
COPY entrypoint.sh /usr/src/app/entrypoint.sh | ||
|
||
# Expose port 1433 in case accessing from other container | ||
# Expose port externally from docker-compose.yml | ||
EXPOSE 1433 | ||
|
||
# Run Microsoft SQl Server and initialization script (at the same time) | ||
CMD /bin/bash /usr/src/app/entrypoint.sh | ||
CMD /bin/bash ./entrypoint.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# Run Microsoft SQl Server and initialization script (at the same time) | ||
/usr/src/app/run-initialization.sh & /opt/mssql/bin/sqlservr | ||
/usr/src/app/initdbs.sh & /opt/mssql/bin/sqlservr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
sleep 90s | ||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Resgrid123!! -d master -i create-databases.sql |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
sysctl -w vm.max_map_count=262144 | ||
docker-compose --project-name resgird up |