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 | |
mkdir workspace | |
( | |
cd "$HOME/workspace" || exit 1 | |
git clone https://github.com/myhireQ/laptop.git "$HOME/workspace/laptop" | |
cd "$HOME/workspace/laptop" || exit 1 | |
sh mac 2>&1 | tee ~/laptop.log | |
) |
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
Overview instructions: | |
http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html | |
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-instance-store.html | |
https://dev.infopark.net/e7832b631baf0ce8/creating-an-instance-store-backed-ami-from-a-running-opsworks-instance | |
Make a very very big powerful box (or else you'll sit there forever waiting for the image to zip up) | |
SSH into a running blank opsworks box | |
Do whatever crazy stuff you need to do (install packages, root kits, etc) | |
Do the stuff at the bottom of here to kill off existing opsworks packages: |