CLOUDSTACK-1066: Add building script to build appliance Signed-off-by: Rohit Yadav <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/825c1c17 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/825c1c17 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/825c1c17 Branch: refs/heads/qemu-img Commit: 825c1c17a13ac1b9c1281c6278c4fc4603211834 Parents: 7d61ee6 Author: Rohit Yadav <[email protected]> Authored: Fri Feb 15 19:50:38 2013 +0530 Committer: Rohit Yadav <[email protected]> Committed: Fri Feb 15 19:51:26 2013 +0530 ---------------------------------------------------------------------- tools/appliance/build.sh | 27 +++++++++++++++ .../definitions/systemvmtemplate/cleanup.sh | 4 -- .../definitions/systemvmtemplate/zerodisk.sh | 2 - 3 files changed, 27 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/825c1c17/tools/appliance/build.sh ---------------------------------------------------------------------- diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh new file mode 100644 index 0000000..cfd4e8b --- /dev/null +++ b/tools/appliance/build.sh @@ -0,0 +1,27 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -x + +appliance="systemvmtemplate" + +# Initialize veewee and dependencies +bundle + +# Start building the appliance +veewee vbox build $appliance --nogui +veewee vbox halt $appliance http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/825c1c17/tools/appliance/definitions/systemvmtemplate/cleanup.sh ---------------------------------------------------------------------- diff --git a/tools/appliance/definitions/systemvmtemplate/cleanup.sh b/tools/appliance/definitions/systemvmtemplate/cleanup.sh index abecc56..6009aad 100644 --- a/tools/appliance/definitions/systemvmtemplate/cleanup.sh +++ b/tools/appliance/definitions/systemvmtemplate/cleanup.sh @@ -17,7 +17,3 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules echo "Adding a 2 sec delay to the interface up, to make the dhclient happy" echo "pre-up sleep 2" >> /etc/network/interfaces - -# Clean up any copied iso or scripts -rm -v /root/*.iso -rm -v /root/*.sh http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/825c1c17/tools/appliance/definitions/systemvmtemplate/zerodisk.sh ---------------------------------------------------------------------- diff --git a/tools/appliance/definitions/systemvmtemplate/zerodisk.sh b/tools/appliance/definitions/systemvmtemplate/zerodisk.sh index 6ad4205..9fc9f6f 100644 --- a/tools/appliance/definitions/systemvmtemplate/zerodisk.sh +++ b/tools/appliance/definitions/systemvmtemplate/zerodisk.sh @@ -5,5 +5,3 @@ rm -f /root/* dd if=/dev/zero of=/EMPTY bs=1M rm -f /EMPTY -# Shutdown the appliance, now export it to required image format -shutdown -h now
