Skip to content

daliand/golang-docker-oracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerfile For building Golang Apps with Oracle InstantClient

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

About

Docker Multistage Build for Golang Oracle OCI applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages