ironic-python-agent/imagebuild/coreos/build_coreos_image.sh
Jim Rollenhagen b6d1130510 Clean up image build script
This change allows the image build script to support the existing
jobs that build images for distribution, as well as future jobs that
build the image within devstack for testing.

Change-Id: I6cae0ce336fde872678fafe6ba2b31af465944a1
2014-08-26 13:08:04 -07:00

25 lines
631 B
Bash
Executable File

#!/bin/bash -xe
#
# This builds a CoreOS IPA image, assuming dependencies are installed
#
# The system this runs on needs these binaries available, most of which
# are installed by default on Ubuntu Trusty:
# - docker
# - gzip / gunzip
# - uuidgen
# - cpio
# - find (gnu)
# - grep
# - gpg (to validate key of downloaded CoreOS image)
#
# Alternatively, run full_trusty_build.bash which will install
# all requirements then perform the build.
if [[ -x /usr/bin/docker.io ]]; then
sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
fi
cd imagebuild/coreos
sudo pip install -r requirements.txt
sudo make clean
sudo make