Skip to content

Commit

Permalink
fixes odbc dep
Browse files Browse the repository at this point in the history
  • Loading branch information
samhatchett committed Jul 30, 2018
1 parent 2a9fcbb commit c75483a
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ FROM ubuntu:bionic

RUN apt-get update && \
apt-get install -y \
libiodbc2-dev \
libiodbc2 \
iodbc \
tdsodbc \
openssl \
libsqlite3-dev \
curl \
Expand All @@ -18,10 +14,25 @@ RUN apt-get update && \
libssl-dev \
git \
llvm \
clang
clang \
automake autoconf libtool

WORKDIR /opt/src

## build/install odbc connection dependencies
RUN curl -JLO https://github.com/openlink/iODBC/archive/v3.52.12.tar.gz && \
tar -xzf iODBC-3.52.12.tar.gz && \
cd iODBC-3.52.12 && \
./autogen.sh && \
./configure --prefix=/usr && \
make && make install

RUN curl -JLO ftp://ftp.freetds.org/pub/freetds/stable/freetds-patched.tar.gz && \
tar -xzf freetds-patched.tar.gz && \
cd freetds-1.00.94 && \
./configure --with-iodbc=/usr --prefix=/usr --disable-libiconv && \
make && make install

## build / install boost
ARG boost_version=1.67.0
ARG boost_dir=boost_1_67_0
Expand Down

0 comments on commit c75483a

Please sign in to comment.