add additional package installation
This commit is contained in:
parent
4e3be10bc8
commit
7037df1168
4 changed files with 15 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
/log
|
/log
|
||||||
/output
|
/output
|
||||||
|
*_packages
|
||||||
|
|
|
@ -56,6 +56,15 @@ Babushka pre-installed.
|
||||||
|
|
||||||
When using ANSIBLE=1, an optional ANSIBLE_VERSION parameter may be passed that will specify which version of ansible to install. By default it will install the latest Ansible.
|
When using ANSIBLE=1, an optional ANSIBLE_VERSION parameter may be passed that will specify which version of ansible to install. By default it will install the latest Ansible.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
ADDPACKAGES="aptitude htop" \
|
||||||
|
make trusty
|
||||||
|
```
|
||||||
|
|
||||||
|
Will build a Ubuntu Trusty x86_64 box with aptitude and htop as additional
|
||||||
|
packages pre-installed. You can also specify the packages in a file
|
||||||
|
trusty_packages.
|
||||||
|
|
||||||
## Pre built base boxes
|
## Pre built base boxes
|
||||||
|
|
||||||
_**NOTE:** None of the base boxes below have a provisioner pre-installed_
|
_**NOTE:** None of the base boxes below have a provisioner pre-installed_
|
||||||
|
|
5
debian/install-extras.sh
vendored
5
debian/install-extras.sh
vendored
|
@ -14,8 +14,11 @@ SECS=15
|
||||||
log "Sleeping for $SECS seconds..."
|
log "Sleeping for $SECS seconds..."
|
||||||
sleep $SECS
|
sleep $SECS
|
||||||
|
|
||||||
# TODO: Support for appending to this list from outside
|
|
||||||
PACKAGES=(vim curl wget man-db openssh-server bash-completion python-software-properties ca-certificates sudo)
|
PACKAGES=(vim curl wget man-db openssh-server bash-completion python-software-properties ca-certificates sudo)
|
||||||
|
|
||||||
|
log "Installing additional packages: ${ADDPACKAGES}"
|
||||||
|
PACKAGES+=" ${ADDPACKAGES}"
|
||||||
|
|
||||||
if [ $DISTRIBUTION = 'ubuntu' ]; then
|
if [ $DISTRIBUTION = 'ubuntu' ]; then
|
||||||
PACKAGES+=' software-properties-common'
|
PACKAGES+=' software-properties-common'
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -13,6 +13,7 @@ export RELEASE=$2
|
||||||
export ARCH=$3
|
export ARCH=$3
|
||||||
export CONTAINER=$4
|
export CONTAINER=$4
|
||||||
export PACKAGE=$5
|
export PACKAGE=$5
|
||||||
|
export ADDPACKAGES=${ADDPACKAGES-$(cat ${RELEASE}_packages | tr "\n" " ")}
|
||||||
export ROOTFS="/var/lib/lxc/${CONTAINER}/rootfs"
|
export ROOTFS="/var/lib/lxc/${CONTAINER}/rootfs"
|
||||||
export WORKING_DIR="/tmp/${CONTAINER}"
|
export WORKING_DIR="/tmp/${CONTAINER}"
|
||||||
export NOW=$(date -u)
|
export NOW=$(date -u)
|
||||||
|
|
Loading…
Reference in a new issue