CLOUDSTACK-1066: Add building script to build appliance

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-02-15 19:50:38 +05:30
parent 7d61ee6e99
commit 825c1c17a1
3 changed files with 27 additions and 6 deletions

27
tools/appliance/build.sh Normal file
View File

@ -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

View File

@ -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

View File

@ -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