-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding full-text search option (#31)
- Loading branch information
Showing
7 changed files
with
95 additions
and
9 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
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,17 @@ | ||
FROM mcr.microsoft.com/mssql/server:2019-latest | ||
|
||
USER root | ||
|
||
RUN apt-get update && \ | ||
apt-get install -yq gnupg gnupg2 gnupg1 curl apt-transport-https && \ | ||
curl https://packages.microsoft.com/keys/microsoft.asc -o /var/opt/mssql/ms-key.cer && \ | ||
apt-key add /var/opt/mssql/ms-key.cer && \ | ||
curl https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-2019.list -o /etc/apt/sources.list.d/mssql-server-2019.list && \ | ||
apt-get update && \ | ||
apt-get install -y mssql-server-fts && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists | ||
|
||
EXPOSE 1433 | ||
USER mssql | ||
ENTRYPOINT [ "/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,17 @@ | ||
FROM mcr.microsoft.com/mssql/server:2022-latest | ||
|
||
USER root | ||
|
||
RUN apt-get update && \ | ||
apt-get install -yq gnupg gnupg2 gnupg1 curl apt-transport-https && \ | ||
curl https://packages.microsoft.com/keys/microsoft.asc -o /var/opt/mssql/ms-key.cer && \ | ||
apt-key add /var/opt/mssql/ms-key.cer && \ | ||
curl https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list -o /etc/apt/sources.list.d/mssql-server-2022.list && \ | ||
apt-get update && \ | ||
apt-get install -y mssql-server-fts && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists | ||
|
||
EXPOSE 1433 | ||
USER mssql | ||
ENTRYPOINT [ "/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
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,29 @@ | ||
param( | ||
[Parameter(Mandatory=$true)] | ||
[string]$ExpectedStatus, | ||
[Parameter(Mandatory=$true)] | ||
[string]$UserName, | ||
[Parameter(Mandatory=$true)] | ||
[string]$Password | ||
) | ||
|
||
$Status = sqlcmd -S localhost -U $UserName -P $Password -Q "SELECT servicename, status_desc FROM sys.dm_server_services WHERE servicename LIKE 'SQL Full-text Filter Daemon Launcher%';" -C | Select-String -Pattern "Running" -Quiet | ||
|
||
if ($ExpectedStatus -eq "Running"){ | ||
if ($Status){ | ||
"Full-Text Search is installed and running." | ||
} | ||
else{ | ||
throw "Full-Text Search is not running or not installed." | ||
} | ||
} | ||
else{ | ||
if ($Status){ | ||
throw "Full-Text Search is running but it should not be." | ||
} | ||
else{ | ||
"Full-Text Search is not running." | ||
} | ||
} | ||
|
||
exit 0 |
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