Amrith Kumar ae74cd056e allow unauthenticated packages to be installed
Sometimes, trove image builds fail because of package authentication
issues. This is often times related to the inability to get to a key
server, and not indicative of anything more serious than that.

The (strongly discouraged in production use cases) workaround for this
is to pass the --allow-unauthenticated option to apt-get install.

I say 'Closes-Bug' below but I realize that this is a white lie. What
it fixes is only the Trove elements. The image build process uses
elements from other places (triple-o, for example). These can still
fail for the same reason.

There is a much bigger hammer that we can use if we need it, and that
is to throw the line 'APT::Get::AllowUnauthenticated "true";' into a
conf file in /etc/apt/apt.conf.d/.

If this hammer isn't big enough, we can revist later.

Change-Id: I009697332bb2a8e1e60b17c10944faed5c311da3
Closes-Bug:#1646856
2016-12-20 06:48:53 -05:00
..

Creates an image for DB2 Express-C v10.5

The packages for DB2 Express-C can be downloaded from: http://www-01.ibm.com/software/data/db2/express-c/download.html and 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". User is provided with a registration form which needs to be completed in order to proceed further to download the DB2 Express-C packages. After accepting the license agreement, user can download the the DB2 Express-C package (.tar.gz file).

There are 2 options for making the DB2 Express-C package accessible to the Trove disk-image building process:

  • place the package in a private repository and set the environment variable DATASTORE_PKG_LOCATION with the url to this private repository. e.g. export DATASTORE_PKG_LOCATION="http://www.foo.com/db2/v10.5_linuxx64_expc.tar.gz"

  • download the package and place it in any directory on the local filesystem that the trovestack script can access. Set the environment variable DATASTORE_PKG_LOCATION with the full path to the downloaded package. e.g. export DATASTORE_PKG_LOCATION="/home/stack/db2/v10.5_linuxx64_expc.tar.gz"

The environment variables used are as follows:

DATASTORE_PKG_LOCATION - is the place where user stores the DB2 Express-C package after registration. This can either be a url to a private repository or the full path to the downloaded package on a local filesystem. DATASTORE_DOWNLOAD_OPTS - defines any wget options user wants to specify like user,password, etc. This is an optional variable and is needed only if specifying a private repository to download the packages from. e.g. export DATASTORE_DOWNLOAD_OPTS="--user=foo --password='secret'"