Ver Fonte

First Commit

Oscar Leiva há 7 anos atrás
commit
eab1b28346
4 ficheiros alterados com 28 adições e 0 exclusões
  1. 10 0
      Dockerfile
  2. 5 0
      freetds.conf
  3. 6 0
      odbc.ini
  4. 7 0
      odbcinst.ini

+ 10 - 0
Dockerfile

@@ -0,0 +1,10 @@
+FROM 1and1internet/ubuntu-16-apache-php-7.0
+
+RUN \
+    apt-get update && \
+    ln -fs /usr/share/zoneinfo/America/El_Salvador /etc/localtime && \
+    dpkg-reconfigure -f noninteractive tzdata && \
+    apt-get install -y unixodbc unixodbc-dev unixodbc-bin tdsodbc freetds-bin freetds-common freetds-dev libdbd-odbc-perl liblocal-lib-perl
+COPY odbc.ini /etc/odbc.ini
+COPY odbcinst.ini /etc/odbcinst.ini
+COPY freetds.conf /etc/freetds/freetds.conf

+ 5 - 0
freetds.conf

@@ -0,0 +1,5 @@
+
+[MSSQL]
+host = 192.168.98.45
+port = 1433
+tds version = 8.0

+ 6 - 0
odbc.ini

@@ -0,0 +1,6 @@
+[MSSQL]
+Driver		= FreeTDS
+Database	= Minutas
+ServerName	= MSSQL
+TDS_Version	= 8.0
+

+ 7 - 0
odbcinst.ini

@@ -0,0 +1,7 @@
+# Driver from the FreeTDS package
+# Setup from the unixODBC package
+[FreeTDS]
+Description = ODBC for FreeTDS 
+Driver      = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so 
+Setup       = /usr/lib/x86_64-linux-gnu/odbc/libtdsS.so
+UsageCount  = 1