Created
October 6, 2016 03:21
-
-
Save flolas/5ff3020e405c983063a177b183cb9c40 to your computer and use it in GitHub Desktop.
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
FROM ubuntu | |
ENV LANGUAGE en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
ENV LC_ALL en_US.UTF-8 | |
ENV LC_CTYPE en_US.UTF-8 | |
ENV LC_MESSAGES en_US.UTF-8 | |
ENV LC_ALL en_US.UTF-8 | |
RUN apt update && \ | |
apt upgrade -y && \ | |
apt install -y \ | |
build-essential \ | |
libc6 \ | |
libkrb5-3 \ | |
libgss3 \ | |
e2fsprogs \ | |
openssl | |
RUN apt install -y \ | |
byobu \ | |
curl \ | |
git \ | |
htop \ | |
man \ | |
unzip \ | |
vim \ | |
wget | |
RUN wget http://www.unixodbc.org/unixODBC-2.3.1.tar.gz && \ | |
tar xvfz unixODBC-2.3.1.tar.gz && \ | |
cd unixODBC-2.3.1 && \ | |
CPPFLAGS="-DSIZEOF_LONG_INT=8" && \ | |
export CPPFLAGS && \ | |
./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --enable-gui=no --enable-drivers=no --enable-iconv --with-iconv-char-enc=UTF8 --with-iconv-ucode-enc=UTF16LE && \ | |
make && \ | |
make install | |
RUN wget https://download.microsoft.com/download/2/E/5/2E58F097-805C-4AB8-9FC6-71288AB4409D/msodbcsql-13.0.0.0.tar.gz && \ | |
tar xvfz msodbcsql-13.0.0.0.tar.gz && \ | |
cd msodbcsql-13.0.0.0 && \ | |
bash ./install.sh install --lib-dir=/usr/lib64 --accept-license | |
ENV LD_LIBRARY_PATH=/usr/lib64 | |
RUN locale-gen en_US en_US.UTF-8 | |
ENTRYPOINT["bcp"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment