Public Repository

Last pushed: a year ago
Short Description
A conrainer that can be used as a jenkins slave to run oracle scripts.
Full Description

Based on centos:6, this container is aimed to be used as a Jenkins Slave, to run Oracle scripts.

The rpms installed for Oracle client are:

  • oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
  • oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
  • oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm

Installed packages:

  • openssh
  • openJDK (1.8.0)

Environment variables are set as:

export ORACLE_HOME=/usr/lib/oracle/12.1/client64
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export TNS_ADMIN=$ORACLE_HOME/network/admin

User jenkins is also created and port 22 is exposed.

To run an Oracle script, a new container should be created FROM this one which includes the following lines in the Dockerfile:

COPY tnsnames.ora /usr/lib/oracle/12.1/client64/network/admin

The tnsnames.ora should contain the TNS details for the DB that you want to connect to.

Docker Pull Command
Owner
babak4

Comments (0)