File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
24.04/helix/sqlserver/amd64 Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-24.04-helix-amd64
2+
3+ USER root
4+
5+ # Install SQL Server and FTS.
6+ RUN apt-get update \
7+ && apt-get install -qq -y \
8+ software-properties-common \
9+ && curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg \
10+ && curl -fsSL https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list | tee /etc/apt/sources.list.d/mssql-server-2022.list \
11+ && apt-get update \
12+ && apt-get install -y \
13+ mssql-server \
14+ mssql-server-fts \
15+ && rm -rf /var/lib/apt/lists/*
16+
17+ # Create new user group and add helixbot to it. This user group will have permission to folders which are needed for SQL Server.
18+ RUN groupadd -g 1000 sqlserver_users \
19+ && usermod -a -G sqlserver_users helixbot \
20+ # Create required directory to avoid giving permission to /.
21+ && mkdir /var/opt/mssql/.system/system \
22+ && chgrp -R sqlserver_users /var/opt/mssql \
23+ && chmod -R 770 /var/opt/mssql
24+
25+ CMD ["/opt/mssql/bin/sqlservr" ]
26+
27+ USER helixbot
Original file line number Diff line number Diff line change 231231 }
232232 ]
233233 },
234+ {
235+ "platforms" : [
236+ {
237+ "architecture" : " amd64" ,
238+ "dockerfile" : " src/ubuntu/24.04/helix/sqlserver/amd64" ,
239+ "os" : " linux" ,
240+ "osVersion" : " noble" ,
241+ "tags" : {
242+ "ubuntu-24.04-helix-sqlserver" : {},
243+ "ubuntu-24.04-helix-sqlserver-amd64" : {}
244+ }
245+ }
246+ ]
247+ },
234248 {
235249 "platforms" : [
236250 {
You can’t perform that action at this time.
0 commit comments