Created
October 3, 2017 11:05
-
-
Save wido/f5c0dced71c3f11374008b6e1aeed069 to your computer and use it in GitHub Desktop.
Building Apache CloudStack DEB packages using Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
VERSION=$1 | |
URL="http://www-eu.apache.org/dist/cloudstack/releases/${VERSION}/apache-cloudstack-${VERSION}-src.tar.bz2" | |
FILE="apache-cloudstack-${VERSION}-src.tar.bz2" | |
cd /tmp | |
wget -O $FILE $URL | |
tar xjf $FILE | |
# Ubuntu 14.04 | |
docker run -ti -v /tmp/apache-cloudstack-${VERSION}-src:/src/cloudstack ubuntu:14.04 /bin/bash -c "apt-get update && apt-get install -y software-properties-common python-software-properties && add-apt-repository -y ppa:openjdk-r/ppa && apt-get update && apt-get install -y dpkg-dev python debhelper openjdk-8-jdk genisoimage python-mysql.connector maven lsb-release devscripts dh-systemd python-setuptools && /src/cloudstack/packaging/build-deb.sh" | |
# Ubuntu 16.04 | |
docker run -ti -v /tmp/apache-cloudstack-${VERSION}-src:/src/cloudstack ubuntu:16.04 /bin/bash -c "apt-get update && apt-get install -y dpkg-dev python debhelper openjdk-8-jdk genisoimage python-mysql.connector maven lsb-release devscripts dh-systemd python-setuptools && /src/cloudstack/packaging/build-deb.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment