Skip to content
No description or website provided.
Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README
add_image_to_template.sh
audit_entries.sh
build_webserver.sh
bundle_instance.sh
config.sh
create_multicould_image.sh
debug.txt
disable_alerts.sh
ec2_images.sh
functions.sh
launch_server.data
launch_server.sh
login.sh
server_state.sh
set_image_as_default.sh
switch_account.sh
terminate_server.sh
test.sh

README

To archive fast startup of any server in cloud, we can start server,

bundle it to AMI, and use created AMI as replacement of server.

For web servers (so called Com and Net) was developed script.

First, set up inputs in config.sh:

config.sh
# RightScale settings 
# email
RS_EMAIL=nderzhak@appcelerator.com
# password
RS_PASSWORD=xxxxxxxxxxxxxxx
# account id
ACCOUNT=42561
# server to start and bundle
# Com1-QE
SERVER=281085001
# template of bundled server
TEMPLATE=221669001

Start script bash build_webserver.sh.
You will see output like this:

Switching to account (42561).
Launching 'Net1-QE AMI build' server.
Disabling all alerts for 'Net1-QE AMI build' server.
Waiting until server operational.
pending......
booting................................................
operational.
Bundling 'Net1-QE AMI build' server.
Waiting until bundle completed.
20%: Image bundle.
70%: Image bundle...................................
80%: Image bundle......
completed: Image bundle.
Terminating server 'Net1-QE AMI build' (281670001).
Creating 'Net1-QE AMI Tue Feb 21 16:22:36 EET 2012' Multi cloud image.
Adding ami-969446ff to created Muti cloud image (218791001).
Adding required tag to created MCI (218791001).
Adding Multi cloud image (218791001) to template (221669001).
Setting up image (218791001) as default in template (221669001).
In result we will get updated template of server.
Something went wrong with that request. Please try again.