Files
trove/integration/scripts/files/deprecated-elements/ubuntu-db2/extra-data.d/20-copy-db2-pkgs
Lingxian Kong 602c4d42de Improve the function tests
- Execute test groups in serial to make sure no more than 2 database
  instance are created at the same time.
- Remove some unneccesary tests
- Remove unneeded datastore, e.g. 'Test_Datastore_1'
- Remove unsupported trovestack subcommands
- Move unsupported DIB elements to the 'deprecated-elements' folder
- Decrease default value of 'agent_call_high_timeout' to 5min
- Add initial_deplay for pooling task
- Use socket file to connect with database instead of using localhost
  IP

Change-Id: Ie5030a671fbeb453eafa6cbe04e08da7b52e33c9
2020-01-28 14:27:52 +13:00

26 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
set -e
set -o xtrace
# CONTEXT: HOST prior to IMAGE BUILD as SCRIPT USER
# PURPOSE: Download the DB2 Express-C v10.5 packages to a directory on the local filesystem or
# to a private repository. The download location is specified using the env variable:
# DATASTORE_PKG_LOCATION
[ -n "${TMP_HOOKS_PATH}" ] || die "Temp hook path not set"
[ -n "${DATASTORE_PKG_LOCATION}" ] || die "DATASTORE_PKG_LOCATION not set"
# First check if the package is available on the local filesystem.
if [ -f "${DATASTORE_PKG_LOCATION}" ]; then
echo "Found the DB2 Express-C packages in ${DATASTORE_PKG_LOCATION}."
dd if="${DATASTORE_PKG_LOCATION}" of=${TMP_HOOKS_PATH}/db2.tar.gz
# else, check if the package is available for download in a private repository.
elif wget ${DATASTORE_DOWNLOAD_OPTS} "${DATASTORE_PKG_LOCATION}" -O ${TMP_HOOKS_PATH}/db2.tar.gz; then
echo "Downloaded the DB2 Express-C package from the private repository"
else
echo "Unable to find the DB2 package at ${DATASTORE_PKG_LOCATION}"
echo "Please register and download the DB2 Express-C packages to a private repository or local filesystem."
exit -1
fi