From 3c0f68702756dcc561d738216cc8d63a5a162e8c Mon Sep 17 00:00:00 2001 From: Pooja Jain <99299346+pooja-jain-17@users.noreply.github.com> Date: Wed, 10 Aug 2022 02:09:51 +0530 Subject: [PATCH] Hdb docker (#401) * Updated HammerDB version from 4.4 to 4.5 * Update Readme --- Docker/Dockerfile | 14 +++++++------- Docker/Readme | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Docker/Dockerfile b/Docker/Dockerfile index 285dc5ba..c9f0952d 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -60,19 +60,19 @@ RUN apt install -y libpq-dev # Install and configuring MySQL client libraries RUN apt install -y libmysqlclient21 -# Install configure HammerDB-v4.4 -RUN wget https://github.com/TPC-Council/HammerDB/releases/download/v4.4/HammerDB-4.4-Linux.tar.gz && \ - tar -xvzf HammerDB-4.4-Linux.tar.gz && ls && \ +# Install configure HammerDB-v4.5 +RUN wget https://github.com/TPC-Council/HammerDB/releases/download/v4.5/HammerDB-4.5-Linux.tar.gz && \ + tar -xvzf HammerDB-4.5-Linux.tar.gz && ls && \ echo 'export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH' >> ~/.bashrc && \ rm -rf *.tar.gz *.zip unixODBC-2.3.9 -WORKDIR /home/hammerdb/HammerDB-4.4 +WORKDIR /home/hammerdb/HammerDB-4.5 # Adding some sample scripts to be used with HammerDB command line interface -ADD sample_scripts /home/hammerdb/HammerDB-4.4/sample_scripts +ADD sample_scripts /home/hammerdb/HammerDB-4.5/sample_scripts CMD "bash" #To create an image: Go to the folder containing the Dockerfile -# docker build -t hammerdb-v4.4 . +# docker build -t hammerdb-v4.5 . #To start a container with that image -# docker run -it -name hammerdb hammerdb-v4.4 bash +# docker run -it -name hammerdb hammerdb-v4.5 bash diff --git a/Docker/Readme b/Docker/Readme index de49b049..005c3cc2 100644 --- a/Docker/Readme +++ b/Docker/Readme @@ -1,12 +1,12 @@ -This folder provides a Dockerfile for building a HammerDb-v4.4 client container that supports all the databases HammerDB is enabled for, i.e. Oracle, Microsoft SQL Server, IBM Db2, MySQL, PostgreSQL and MariaDB. However for enabling client libraries for IBM Db2, you will need to download the client libraries from IBM web portal. For seamless build from Dockerfile, you can place the downloaded IBM Db2 client libraries, "odbc_cli" alongside Dockerfile in the same folder where you plan to build the HammerD container. For someone who doesn't need IBM DB2 client, they can create a empty folder as "odbc_cli". +This folder provides a Dockerfile for building a HammerDb-v4.5 client container that supports all the databases HammerDB is enabled for, i.e. Oracle, Microsoft SQL Server, IBM Db2, MySQL, PostgreSQL and MariaDB. However for enabling client libraries for IBM Db2, you will need to download the client libraries from IBM web portal. For seamless build from Dockerfile, you can place the downloaded IBM Db2 client libraries, "odbc_cli" alongside Dockerfile in the same folder where you plan to build the HammerD container. For someone who doesn't need IBM DB2 client, they can create a empty folder as "odbc_cli". To create an image: Go to the folder containing the Dockerfile - docker build -t hammerdb-v4.4 . + docker build -t hammerdb-v4.5 . -To start a container named "hammerdb" with the image, "hammerdb-v4.4" built from from Dockerfile - docker run -it --name hammerdb hammerdb-v4.4 bash +To start a container named "hammerdb" with the image, "hammerdb-v4.5" built from from Dockerfile + docker run -it --name hammerdb hammerdb-v4.5 bash You will need to add networking to communicate with a remote database when starting the container For example, adding host network to the container. - docker run --network=host -it --name hammerdb hammerdb-v4.4 bash + docker run --network=host -it --name hammerdb hammerdb-v4.5 bash