2014-09-24 15:16:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
source common/ui.sh
|
|
|
|
source common/utils.sh
|
|
|
|
|
|
|
|
info 'Installing extra packages and upgrading'
|
|
|
|
|
|
|
|
debug 'Bringing container up'
|
|
|
|
utils.lxc.start
|
|
|
|
|
|
|
|
# Sleep for a bit so that the container can get an IP
|
2014-12-22 16:40:41 +00:00
|
|
|
SECS=20
|
|
|
|
log "Sleeping for $SECS seconds..."
|
|
|
|
sleep $SECS
|
2014-09-24 15:16:20 +00:00
|
|
|
|
2014-09-24 15:40:53 +00:00
|
|
|
utils.lxc.attach yum update -y
|
|
|
|
|
2014-09-24 15:16:20 +00:00
|
|
|
# TODO: Support for appending to this list from outside
|
2014-12-22 16:41:48 +00:00
|
|
|
PACKAGES=(vim curl wget man bash-completion python-software-properties ca-certificates sudo nfs-common)
|
2014-11-04 12:30:03 +00:00
|
|
|
utils.lxc.attach yum install ${PACKAGES[*]} -y
|