aa1d4d2246
Significant changes: * Using docker image to install datastore. * Datastore image is common to different datastores. * Using backup docker image to do backup and restore. * Support MariaDB replication * Set most of the functional jobs as non-voting as nested virtualization is not supported in CI. Change-Id: Ia9c97a63a961eebc336b70d28dc77638144c1834
18 lines
490 B
Bash
Executable File
18 lines
490 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
source $_LIB/die
|
|
|
|
[ -n "$TMP_HOOKS_PATH" ] || die "Temp hook path not set"
|
|
|
|
# Guest agent needs to ssh into the controller to download code in dev mode.
|
|
if [[ ${DEV_MODE} == "true" && -e ${SSH_DIR}/id_rsa ]]; then
|
|
sudo -Hiu ${HOST_SCP_USERNAME} dd if=${SSH_DIR}/id_rsa of=${TMP_HOOKS_PATH}/id_rsa
|
|
sudo -Hiu ${HOST_SCP_USERNAME} dd if=${SSH_DIR}/id_rsa.pub of=${TMP_HOOKS_PATH}/id_rsa.pub
|
|
fi
|