2014-03-08 02:34:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2014-03-08 05:32:19 +00:00
|
|
|
source common/ui.sh
|
2014-03-08 02:34:09 +00:00
|
|
|
|
2014-03-08 05:32:19 +00:00
|
|
|
info 'Installing extra packages and upgrading'
|
|
|
|
|
|
|
|
debug 'Bringing container up'
|
|
|
|
lxc-start -d -n ${CONTAINER} &>/dev/null || true
|
|
|
|
|
|
|
|
# TODO: Support for setting this from outside
|
2014-03-08 13:42:28 +00:00
|
|
|
UBUNTU_PACKAGES=(vim curl wget man-db bash-completion python-software-properties software-properties-common)
|
2014-03-08 05:32:19 +00:00
|
|
|
|
|
|
|
lxc-attach -n ${CONTAINER} -- apt-get update
|
2014-03-08 13:42:28 +00:00
|
|
|
lxc-attach -n ${CONTAINER} -- apt-get install ${UBUNTU_PACKAGES[*]} -y --force-yes
|
2014-03-08 05:32:19 +00:00
|
|
|
lxc-attach -n ${CONTAINER} -- apt-get upgrade -y --force-yes
|
2014-03-08 13:42:28 +00:00
|
|
|
|
|
|
|
warn 'TODO: Install provisioners'
|