Datasets:
DenyTranDFW
commited on
Commit
•
486f0b7
1
Parent(s):
ff9d6ef
Upload 9 files
Browse filessql-server setup with mdf/ldf files
- dockerfile_requirements_mdf_ldf/Dockerfile +28 -0
- dockerfile_requirements_mdf_ldf/data.part01.rar +3 -0
- dockerfile_requirements_mdf_ldf/data.part02.rar +3 -0
- dockerfile_requirements_mdf_ldf/data.part03.rar +3 -0
- dockerfile_requirements_mdf_ldf/data.part04.rar +3 -0
- dockerfile_requirements_mdf_ldf/data.part05.rar +3 -0
- dockerfile_requirements_mdf_ldf/data.part06.rar +3 -0
- dockerfile_requirements_mdf_ldf/data.part07.rar +3 -0
- dockerfile_requirements_mdf_ldf/requirements.txt +35 -0
dockerfile_requirements_mdf_ldf/Dockerfile
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Source: https://github.com/Microsoft/mssql-docker/blob/master/linux/preview/examples/mssql-agent-fts-ha-tools/Dockerfile
|
2 |
+
|
3 |
+
# mssql-agent-fts-ha-tools
|
4 |
+
# Maintainers: Microsoft Corporation (twright-msft on GitHub)
|
5 |
+
# GitRepo: https://github.com/Microsoft/mssql-docker
|
6 |
+
|
7 |
+
# Base OS layer: Latest Ubuntu LTS
|
8 |
+
FROM ubuntu:16.04
|
9 |
+
|
10 |
+
# Install prerequistes since it is needed to get repo config for SQL server
|
11 |
+
RUN export DEBIAN_FRONTEND=noninteractive && \
|
12 |
+
apt-get update && \
|
13 |
+
apt-get install -yq curl apt-transport-https && \
|
14 |
+
# Get official Microsoft repository configuration
|
15 |
+
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
|
16 |
+
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2019.list | tee /etc/apt/sources.list.d/mssql-server.list && \
|
17 |
+
apt-get update && \
|
18 |
+
# Install SQL Server from apt
|
19 |
+
apt-get install -y mssql-server && \
|
20 |
+
# Install optional packages
|
21 |
+
apt-get install -y mssql-server-ha && \
|
22 |
+
apt-get install -y mssql-server-fts && \
|
23 |
+
# Cleanup the Dockerfile
|
24 |
+
apt-get clean && \
|
25 |
+
rm -rf /var/lib/apt/lists
|
26 |
+
|
27 |
+
# Run SQL Server process
|
28 |
+
CMD /opt/mssql/bin/sqlservr
|
dockerfile_requirements_mdf_ldf/data.part01.rar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c5ea7685bd3d3ecf4cdbbd7e683f4d22d49086865e6862951faf7e46e0a1f831
|
3 |
+
size 2147483648
|
dockerfile_requirements_mdf_ldf/data.part02.rar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:09270a0d1c3371e9309681dc363767717e0c67a1519d11d28f907fd9d7f9d669
|
3 |
+
size 2147483648
|
dockerfile_requirements_mdf_ldf/data.part03.rar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:66f662e545d389014922264b64ae934c5b690e8f37dc21c1b6d94638439ed8d5
|
3 |
+
size 2147483648
|
dockerfile_requirements_mdf_ldf/data.part04.rar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:342da737a3b2b75d2cfef45a597025ee05b638030ea5a89dd43e870c066cd08d
|
3 |
+
size 2147483648
|
dockerfile_requirements_mdf_ldf/data.part05.rar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:877e23fe6c30d8053f74008cdddabe996a071dd7be1e92f9b948e468751d7bf8
|
3 |
+
size 2147483648
|
dockerfile_requirements_mdf_ldf/data.part06.rar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5ea4f7a466addce8a3529399ca719dba4153a1c6d61fada22059589fc94a3365
|
3 |
+
size 2147483648
|
dockerfile_requirements_mdf_ldf/data.part07.rar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f4da6fab1942fc16f5cc2c437b9d16b2c67cbdfb3a58dffae5b4986877929e2f
|
3 |
+
size 1483307926
|
dockerfile_requirements_mdf_ldf/requirements.txt
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
Docker Download
|
6 |
+
https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe?utm_source=docker&utm_medium=webreferral&utm_campaign=docs-driven-download-win-amd64
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
SSMS Download
|
11 |
+
https://aka.ms/ssmsfullsetup
|
12 |
+
|
13 |
+
|
14 |
+
7Zip
|
15 |
+
https://7-zip.org/download.html
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
# Docker Setup
|
22 |
+
$LOCATION_OF_MDF_LDF = "Z:/data"
|
23 |
+
|
24 |
+
cd $LOCATION_OF_MDF_LDF
|
25 |
+
|
26 |
+
cd ../
|
27 |
+
|
28 |
+
docker build -t mssql_fsnds .
|
29 |
+
|
30 |
+
docker run -d -p 1433:1433 --name secfsds -v $LOCATION_OF_MDF_LDF:/var/opt/mssql/data -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Mypass123!' mssql_fsnds
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
|