Multistage Dockerfile for building Oracle Instantclient Apps
Download the -basic, -basiclite and -devel RPMs from http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
Make sure oci8.pc matches the InstantClient Version
Optionally setup tnsnames.ora and sqlnet.ora. You can still use ezconnect syntax without those files.
Usage:
docker build -t oracle-test .
Test:
golang-docker-oracle dali$ docker run --net=host oracle-test
2017/12/15 22:23:48 DB Result: Golang Oracle Test
TODO:
It would be nice to statically link InstantClient libraries to enable using from:scratch