tspence / docker-examples

Docker examples and scripts
MIT License
8 stars 0 forks source link

mssql-server-fts depends on mssql-server #1

Open sliekens opened 11 months ago

sliekens commented 11 months ago

Hi,

I found this example trying to add mssql-server-fts to an existing mssql docker image.

One thing I noticed is that mssql-server-fts depends on mssql-server, even though that is not really needed since it is already installed out-of-band (not from apt). It will still download and install the full sql server from apt, which is not what I want.

Do you have any insight how to install only mssql-server-fts?

Thx

tspence commented 2 months ago

Wow, not sure how I missed this comment! Must have been buried under other issues.

The module mssql-server-fts as near as I can tell is a plugin to mssql-server, which is why you can't install it on its own.

sliekens commented 2 months ago

Thanks @tspence, no problem, I ended up abandoning my experiments.

It's a bit annoying Microsoft doesn't already offer base images with full text search.

As I recall, your example uses a base image that already contains mssql-server, but the apt package for the FTS then proceeds to bulldozer the pre-installed version with the version from the apt repository. Oh well.

(Actually I think the final image might contain two distinct copies of sqlserver, now that I think about it again.)

tspence commented 2 months ago

It's a bit annoying Microsoft doesn't already offer base images with full text search.

Totally agreed! It would save everyone so much hassle.

As I recall, your example uses a base image that already contains mssql-server, but the apt package for the FTS then proceeds to bulldozer the pre-installed version with the version from the apt repository. Oh well.

(Actually I think the final image might contain two distinct copies of sqlserver, now that I think about it again.)

Interesting! I just uploaded my latest dockerfile, which is a bit different than my original one. The original one had too many stages, so it generated lots and lots of intermediate filelists. I rebuilt sql server fulltext on the latest dockerfile and I did not see a duplicate install, so maybe this is fixed now?