findmypast-oss / mssql_ecto

Ecto adapter for Mssqlex
Apache License 2.0
49 stars 20 forks source link

Can't open lib #35

Closed cpursley closed 6 years ago

cpursley commented 6 years ago

[unixODBC][Driver Manager]Can't open lib '/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.1.so.9.2'

Expected Behavior

This worked before. Expected to fire right up.

Current Behavior

Example fails when running docker-compose mix setup

Possible Solution

Not sure, I've fiddled a bunch with the Elixir Dockerfile (tried setting msodbcsql, mssql-tools and unixodbc-dev versions).

Perhaps this an issue with the official MSSQL Docker image? I was not able to get running on macOS either.

Steps to Reproduce (for bugs)

$ docker-compose build
$ docker-compose up

In separate terminal:

$ docker-compose mix setup

Context

Silently failed on me with any changes to mssql_ecto version or Docker.

Your Environment

shdblowers commented 6 years ago

Microsoft have switched back to shipping version 17, maybe give that a go? Add this as docker compose environment variable - MSSQL_DVR={ODBC Driver 17 for SQL Server}.