forked from t-oster/mssql-docker-zfs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c0c8da
commit 2a8fd60
Showing
1 changed file
with
4 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#You can use this directly as your mssql-container, or just use it to create the nodirect_open.so file | ||
#for using with an existing container like shown in docker-compose.yml | ||
FROM mcr.microsoft.com/mssql/server:2017-latest | ||
FROM mcr.microsoft.com/mssql/server:2022-latest | ||
ADD nodirect_open.c / | ||
RUN apt update && apt install -y gcc && \ | ||
gcc -shared -fpic -o /nodirect_open.so nodirect_open.c -ldl && \ | ||
apt purge -y gcc && \ | ||
echo "/nodirect_open.so" >> /etc/ld.so.preload | ||
gcc -shared -fpic -o /nodirect_open.so nodirect_open.c -ldl && \ | ||
apt purge -y gcc && \ | ||
echo "/nodirect_open.so" >> /etc/ld.so.preload |