Public Repository

Last pushed: 2 years ago
Short Description
A back-end job schedule environment which has Teradata unixODBC well configured.
Full Description

Brief Introduction

CentOS 7.2 which has Teradata 15.10 ODBC well configured and some python data analysis packages installed.
Python version 2.7.5.
Data analysis python packages include pandas, matplotlib, sqlparse,pymongo, teradata and python web framework flask.

We private use this image for scheduling portal back-end job.

Pull the newest image

docker pull zhlh/teradata_unixodbc_pandas_matplotlib_flask

Example

Start a container to get a bash shell

docker run -it -v ${HOME}:/data:rw zhlh/teradata_unixodbc_pandas_matplotlib_flask /bin/bash

comments

This command will start a container and return your a shell. This container we make a volume which map your home directory to the mount point /data, which mean you can access all the data in your home directory through /data directory in the docker container.

Test Teradata Connection

Teradata connection test code:

import teradata 
udaExec = teradata.UdaExec (appName="HelloWorld", version="1.0",
        logConsole=True)

conn = udaExec.connect(method="odbc", system="td_host_addr",
        username="td_username", password="td_user_password");

for row in conn.execute("SELECT GetQueryBand()"):
    print(row)

Bugs or suggestions

Zhang Lihui

Docker Pull Command
Owner
zhlh

Comments (0)