Skip to content

Instantly share code, notes, and snippets.

@takekazuomi
Created June 4, 2022 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takekazuomi/efb28bbfe9979ef1c73e6b724f2df7b2 to your computer and use it in GitHub Desktop.
Save takekazuomi/efb28bbfe9979ef1c73e6b724f2df7b2 to your computer and use it in GitHub Desktop.

この辺見たら、mcr.microsoft.com/azure-sql-edge:latest がイメージ名らしい。 https://docs.microsoft.com/en-us/azure/azure-sql/database/local-dev-experience-sql-database-emulator?view=azuresql#what-is-the-azure-sql-database-emulator

持ってきて中をみたら。以前に比べて、paldumper ってのはあるけど、palrun がない。

mssql@d7caad55dc97:/opt/mssql/bin$ ls -Al
total 16172
-rwxrwxr-x 1 root root     434 Jan 14 22:02 compress-dump.sh
-rw-rw-r-- 1 root root   21890 Jan 14 22:02 crash-support-functions.sh
-rwxrwxr-x 1 root root    1749 Jan 14 22:02 generate-sql-dump.sh
-rwxrwxr-x 1 root root    3902 Jan 14 22:02 handle-crash.sh
-rwxrwxr-x 1 root root 8614008 Jan 14 22:03 launchpadd
-rwxrwxr-x 1 root root 2330864 Jan 14 22:02 paldumper
-rwxrwxr-x 1 root root    2164 Jan 14 21:59 permissions_check.sh
-rwxrwxr-x 1 root root 3126184 Jan 14 22:03 setnetbr
-rwxrwxr-x 1 root root 2433424 Jan 14 22:02 sqlservr
mssql@d7caad55dc97:/opt/mssql/bin$

もしかしたらネイティブポート?と思って。/opt/mssql/lib をみたら、sfpがあった。

mssql@d7caad55dc97:/opt/mssql/lib$ ls -Al
total 560664
-rw-r--r--  1 root root    950376 Sep  5  2019 libc++.so.1
-rw-r--r--  1 root root    307496 Sep  5  2019 libc++abi.so.1
-rwxrwxr-x  1 root root    395120 Jan 14 21:59 libsqlvdi.so
-rw-rw-r--  1 root root    369760 Jan 14 21:58 libunwind.so.8
drwxrwxr-x 13 root root      4096 Jan 14 22:02 loc
-rw-rw-r--  1 root root    151552 Jan 14 21:58 secforwarderxplat.sfp
-rw-rw-r--  1 root root  36560896 Jan 14 22:01 sqlagent.sfp
-rw-rw-r--  1 root root 328581120 Jan 14 22:01 sqlservr.sfp
-rw-rw-r--  1 root root   1851392 Jan 14 21:58 system.certificates.sfp
-rw-rw-r--  1 root root 196505600 Jan 14 21:58 system.common.sfp
-rw-rw-r--  1 root root    212992 Jan 14 21:58 system.security.sfp
-rw-rw-r--  1 root root   8212480 Jan 14 21:58 system.sfp
mssql@d7caad55dc97:/opt/mssql/lib$

中をみたら、system.common.sfpの中の、Content/Windows/System32 あたりに、Windowsっぽいものがワンセット入っていた。 だいぶ小さくなったけど、中身は Linux on Windowsらしい。どんな実装になってるのかを公開して欲しいなぁ。

参考: https://github.com/thinkcz/DrawBridge https://github.com/nta/sfpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment