Public Repository

Last pushed: a year ago
Short Description
IBM DB2 Express-C
Full Description

From http://www-03.ibm.com/software/products/en/db2expressc:
IBM® DB2® Express-C is a no-charge community edition of DB2 database software, which provides the core features of more scalable DB2 editions. It is designed for ease of use and fast setup, and is ideal for academia, small businesses and multi-branch companies.

This version of IBM DB2 Express-C was made for a project done during the Architettura dei Sistemi Software exam (http://cabibbo.dia.uniroma3.it/asw/index.html) of the RomaTre University, held by professor Luca Cabibbo.
The application developed for this project can be found at: https://github.com/carloLV/progettoEsameASWrest.

This docker image is meant to be used in conjunction with docker-compose(https://docs.docker.com/compose/).
This is a portion of the docker-compose.yml file used:

 version: '2'
 services:
   db:
     image: pheasanthunters/db2express-c:latest
     privileged: true    
     ports:
       - "50000:50000"
     command: /start-db.sh

The script start-db.sh solves a known problem of DB2 Epress-C docker images related to kernel.shmmax value and create a database called dbASW (used for the project mentioned above).
This is the full /start-db.sh script:

 #!/bin/bash
 sudo sysctl kernel.shmmax=18446744073692774399
 /bin/su -s /bin/bash -c '. ~db2inst1/sqllib/db2profile;db2start;db2 create database dbASW' db2inst1
 tail -f /dev/null

Is it possible to edit the script to let it create your own database or simply login as db2inst1, drop dbASW and create a new database.

This docker image was created by:

  • Valerio Cetorelli (valerio_cetorelli@yahoo.it)
  • Alessandro Fogli (ale.fog93@yahoo.it)

IBM DB2 Express-C is a property of IBM. Any further informations can be found at: http://www.ibm.com/us-en/

Docker Pull Command
Owner
pheasanthunters

Comments (0)