
- Add a new element 'guest-agent' for image building. This element is used when dev_mode=false, so that the trove code is downloaded into the image during the building phase rather than during the guest agent initialization. - Improve trovestack sub-command 'build-image'. ./trovestack build-image ${datastore_type} \ ${guest_os} \ ${guest_release} \ ${dev_mode} - Improve documentation. Story: #2005387 Task: #30375 Change-Id: I9d7acbd6a97f8c01b48b0f2cf94398d549d89124
27 lines
599 B
Bash
Executable File
27 lines
599 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# CONTEXT: GUEST during PRE-CONSTRUCTION as ROOT
|
|
# PURPOSE: Setup apt-repo list so that we can connect to Percona's repo
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
GUEST_USERNAME=${GUEST_USERNAME:-"ubuntu"}
|
|
RELEASE=${DIB_RELEASE:-"xenial"}
|
|
|
|
# Add Percona GPG key
|
|
mkdir -p /home/${GUEST_USERNAME}/.gnupg
|
|
|
|
get_key_robust 1C4CBDCDCD2EFD2A
|
|
get_key_robust 9334A25F8507EFA5
|
|
|
|
# Add Percona repo
|
|
# Creates the percona sources list
|
|
cat <<EOL > /etc/apt/sources.list.d/percona.list
|
|
deb http://repo.percona.com/apt $RELEASE main
|
|
deb-src http://repo.percona.com/apt $RELEASE main
|
|
EOL
|
|
|
|
# Force an update
|
|
apt-get update
|