diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh new file mode 100644 index 00000000000..cfd4e8b2349 --- /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 diff --git a/tools/appliance/definitions/systemvmtemplate/cleanup.sh b/tools/appliance/definitions/systemvmtemplate/cleanup.sh index abecc56dcb5..6009aad8e78 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 diff --git a/tools/appliance/definitions/systemvmtemplate/zerodisk.sh b/tools/appliance/definitions/systemvmtemplate/zerodisk.sh index 6ad4205033e..9fc9f6f8693 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