Giter VIP home page Giter VIP logo

netezza-docker's Introduction

Netezza Dockerfile

This image includes unixODBC with a registered IBM Netezza driver.

Build

Due to licensing this currently requires unpacking the Netezza driver locally into a directory called netezza.

To build the image, run:

docker build -t dbhi/netezza .

Usage

The primary intent is to extend the image for applications that use an ODBC client library. For example:

FROM dbhi/netezza

...

Running the image as is will test the connection settings.

$ docker run --rm --env-file conn.env dbhi/netezza
Connection successful!

To customize the connection settings, set the following environment variables as options or in an environment file.

  • NZ_HOST
  • NZ_USER
  • NZ_PASSWORD
  • NZ_DATABASE
  • NZ_DBMS_PORT - (this is not an error)

Run a query

To run a sample query, use the nzodbcsql command with the -q option to supply a query string. Note that this only for testing since it returns a maximum of 100 rows for the query.

docker run --rm -it --env-file=cdw.env dbhi/netezza nzodbcsql -q '...'

The -f option is also available for supplying a file. For this to work, mount a volume to the container containing the SQL file(s):

docker run --rm -it --env-file=cdw.env -v /path/to/sql:/sql dbhi/netezza nzodbcsql -f /sql/query.sql

References

netezza-docker's People

Contributors

bruth avatar

Watchers

Nikita Zhevnitskiy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.