Add script to install image build dependencies
In order for automated image builds to run, create this script that can be called from magnum jobs, to install needed dependencies for diskimage-builder and fedora-atomic builds. That script will be run on the VM that will be spinned to run the image builds, targetted for ubuntu-trusty. Change-Id: Icf5a2c79e47e632be2ac49bc9ccc528b4f604eb2 Implements blueprint fedora-atomic-image-build
This commit is contained in:
parent
7dc7fad5bc
commit
68eb8b26d8
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script installs all needed dependencies to generate
|
||||
# images using diskimage-builder. Please not it only has been
|
||||
# tested on Ubuntu Trusty
|
||||
|
||||
set -eux
|
||||
set -o pipefail
|
||||
|
||||
sudo apt-get update || true
|
||||
sudo apt-get install -y \
|
||||
debootstrap \
|
||||
kpartx \
|
||||
qemu-utils \
|
||||
python-dev \
|
||||
build-essential \
|
||||
python-pip \
|
||||
python-lzma \
|
||||
yum \
|
||||
yum-utils \
|
||||
python-yaml
|
Loading…
Reference in New Issue