The senzing/db2-driver-installer
docker image installs redistributable Db2 client code into
a mounted volume.
- 🤔 - A "thinker" icon means that a little extra thinking may be required. Perhaps you'll need to make some choices. Perhaps it's an optional step.
- ✏️ - A "pencil" icon means that the instructions may need modification before performing.
⚠️ - A "warning" icon means that something tricky is happening, so pay attention.
This repository and demonstration require 1 GB free disk space.
Budget 20 minutes to get the demonstration up-and-running, depending on CPU and network speeds.
This repository assumes a working knowledge of:
Configuration values specified by environment variable or command line parameter.
-
✏️ Specify the directory containing the Senzing installation. Use the same
SENZING_VOLUME
value used when performing "How to initialize Senzing with Docker". Example:export SENZING_VOLUME=/opt/my-senzing
-
Here's a simple test to see if
SENZING_VOLUME
is correct. The following commands should return file contents. Example:cat ${SENZING_VOLUME}/g2/g2BuildVersion.json cat ${SENZING_VOLUME}/data/3.0.0/libpostal/data_version
-
⚠️ macOS - File sharing must be enabled forSENZING_VOLUME
. -
⚠️ Windows - File sharing must be enabled forSENZING_VOLUME
.
-
-
Specify directory for IBM DB2 drivers. Example:
export SENZING_OPT_IBM_DIR=${SENZING_VOLUME}/opt-ibm
🤔 Optional: Use if docker container is part of a docker network.
-
List docker networks. Example:
sudo docker network ls
-
✏️ Specify docker network. Choose value from NAME column of
docker network ls
. Example:export SENZING_NETWORK=*nameofthe_network*
-
Construct parameter for
docker run
. Example:export SENZING_NETWORK_PARAMETER="--net ${SENZING_NETWORK}"
-
Run docker container. Example:
sudo docker run \ --rm \ --volume ${SENZING_OPT_IBM_DIR}:/opt/IBM \ ${SENZING_NETWORK_PARAMETER} \ senzing/db2-driver-installer
The following software programs need to be installed:
For more information on environment variables, see Environment Variables.
-
Set these environment variable values:
export GIT_ACCOUNT=senzing export GIT_REPOSITORY=docker-db2-driver-installer export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
-
Follow steps in clone-repository to install the Git repository.
- Visit Download initial Version 11.1 clients and drivers
- Click on "IBM Data Server Driver for ODBC and CLI (CLI Driver)" link.
- Select 🔘 "IBM Data Server Driver for ODBC and CLI (Linux AMD64 and Intel EM64T)"
- Click "Continue" button.
- Choose download method and click "Download now" button.
- Download
ibm_data_server_driver_for_odbc_cli_linuxx64_v11.1.tar.gz
to ${GIT_REPOSITORY_DIR}/downloads directory.
- Visit DB2 JDBC Driver Versions and Downloads
- In DB2 Version 11.1 > JDBC 3.0 Driver version, click on "3.72.52" link for "v11.1 M4 FP4 iFix1"
- Click on "DSClients--jdbc_sqlj-11.1.4.4-FP004a" link.
- Click on "v11.1.4fp4a_jdbc_sqlj.tar.gz" link to download.
- Download
v11.1.4fp4a_jdbc_sqlj.tar.gz
to ${GIT_REPOSITORY_DIR}/downloads directory.
-
Option #1: Using
docker
command and local repository.cd ${GIT_REPOSITORY_DIR} sudo docker build --tag senzing/db2-driver-installer .
-
Option #2: Using
make
command.cd ${GIT_REPOSITORY_DIR} sudo make docker-build
Note:
sudo make docker-build-development-cache
can be used to create cached docker layers.
- See docs/errors.md.