Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/ubuntu/24.04/helix/sqlserver/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-24.04-helix-amd64

USER root

# Install SQL Server and FTS.
RUN apt-get update \
&& apt-get install -qq -y \
software-properties-common \
&& curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg \
&& curl -fsSL https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list | tee /etc/apt/sources.list.d/mssql-server-2022.list \
&& apt-get update \
&& apt-get install -y \
mssql-server \
mssql-server-fts \
&& rm -rf /var/lib/apt/lists/*

# Create new user group and add helixbot to it. This user group will have permission to folders which are needed for SQL Server.
RUN groupadd -g 1000 sqlserver_users \
&& usermod -a -G sqlserver_users helixbot \
# Create required directory to avoid giving permission to /.
&& mkdir /var/opt/mssql/.system/system \
&& chgrp -R sqlserver_users /var/opt/mssql \
&& chmod -R 770 /var/opt/mssql

CMD ["/opt/mssql/bin/sqlservr"]

USER helixbot
14 changes: 14 additions & 0 deletions src/ubuntu/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,20 @@
}
]
},
{
"platforms": [
{
"architecture": "amd64",
"dockerfile": "src/ubuntu/24.04/helix/sqlserver/amd64",
"os": "linux",
"osVersion": "noble",
"tags": {
"ubuntu-24.04-helix-sqlserver": {},
"ubuntu-24.04-helix-sqlserver-amd64": {}
}
}
]
},
{
"platforms": [
{
Expand Down