diff --git a/.travis.yml b/.travis.yml index 673bc0a..2734f06 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,9 @@ -dist: xenial +dist: bionic + +language: python + +python: + - "3.7" branches: only: diff --git a/Dockerfile b/Dockerfile index 7ebcc5a..38f62b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,13 +9,18 @@ COPY requirements.txt . RUN \ export ACCEPT_EULA='Y' && \ export MYSQL_CONNECTOR='mysql-connector-odbc-8.0.18-linux-glibc2.12-x86-64bit' && \ + export MYSQL_CONNECTOR_CHECKSUM='f2684bb246db22f2c9c440c4d905dde9' && \ apt-get update && \ apt-get install -y curl build-essential unixodbc-dev g++ apt-transport-https && \ + gpg --keyserver hkp://keys.gnupg.net --recv-keys 5072E1F5 && \ # # Install pyodbc db drivers for MSSQL, PG and MySQL curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \ curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list && \ curl -L -o ${MYSQL_CONNECTOR}.tar.gz https://dev.mysql.com/get/Downloads/Connector-ODBC/8.0/${MYSQL_CONNECTOR}.tar.gz && \ + curl -L -o ${MYSQL_CONNECTOR}.tar.gz.asc https://downloads.mysql.com/archives/gpg/\?file\=${MYSQL_CONNECTOR}.tar.gz\&p\=10 && \ + gpg --verify ${MYSQL_CONNECTOR}.tar.gz.asc && \ + echo "${MYSQL_CONNECTOR_CHECKSUM} ${MYSQL_CONNECTOR}.tar.gz" | md5sum -c - && \ apt-get update && \ gunzip ${MYSQL_CONNECTOR}.tar.gz && tar xvf ${MYSQL_CONNECTOR}.tar && \ cp ${MYSQL_CONNECTOR}/bin/* /usr/local/bin && cp ${MYSQL_CONNECTOR}/lib/* /usr/local/lib && \