Files
trove-integration/scripts/files
Mariam John 7e96b00a89 Create DIB elements for DB2 Express-C on Ubuntu
Create the disk-image-builder elements for installing
DB2 Express-C on Ubuntu. These changes will enable users to
create images of DB2 Express-C which can be used to provision
DB2 instances. The only change that affects the base trove-
integration code is the change where the 60-loopback-host
element was moved from the ubuntu-guest/post-install.d to
ubuntu-guest/pre-install.d. This element adds the host ip
to the /etc/hosts file and DB2 requires this information
during installation.

The DB2 Express-C packages can be downloaded from:
 http://www-01.ibm.com/software/data/db2/express-c/download.html.
Click on the link "DB2 Express-C for Linux 64-bit". New users can
either get an IBM ID or click on the "Proceed without an IBM ID".
Users will have to register first inorder to download the packages.
After downloading the packages, users can make it accessible to
Trove for building guest images by:
- storing it in a private repository and defining the variable
  'DATASTORE_PKG_LOCATION' to be the url of the private repository.
- storing it on the local filesystem in a directory accessible to
  the DB2 DIB element and setting the 'DATASTORE_PKG_LOCATION' to
  point to full path of the downloaded package.

For example, assuming user downloads the DB2 package to
'/home/stack/db2' directory, run the commands in the following
order to create a DB2 image:
  - export DATASTORE_PKG_LOCATION='/home/stack/db2/<pkg name>'
  - ./redstack kick-start db2

In the 10-db2 element, while creating the DB2 server instance,it
kept throwing an error saying that the hostname could not be
resolved. Hence, I moved the element 60-loopback-host from
ubuntu-guest/post-install.d to ubuntu-guest/pre-install.d.

Partialy Implements: blueprint db2-plugin-for-trove
Change-Id: I1a349054a9f6a560a07f90e49bf24990365df49d
DocImpact
2015-03-23 19:13:49 -04:00
..
2014-06-10 15:01:05 -07:00