mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
mention because 12.10 works on ec2
This commit is contained in:
@@ -4,7 +4,7 @@ Docker powered mini-Heroku. The smallest PaaS implementation you've ever seen.
|
||||
|
||||
## Requirements
|
||||
|
||||
Assumes Ubuntu 13 right now. Ideally have a domain ready to point to your host. It's designed for and is probably
|
||||
Assumes Ubuntu 13 or 12.10 right now. Ideally have a domain ready to point to your host. It's designed for and is probably
|
||||
best to use a fresh VM. The bootstrapper will install everything it needs.
|
||||
|
||||
## Installing
|
||||
|
||||
27
tests/run.sh
Executable file
27
tests/run.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
KEYNAME="$1"
|
||||
echo "-----> Booting EC2 instance..."
|
||||
INSTANCE=$(ec2-run-instances -k $1 ami-c90277a0 2>/dev/null | awk '/^INSTANCE/ {print $2}')
|
||||
terminate() {
|
||||
echo "-----> Terminating $INSTANCE..."
|
||||
ec2-terminate-instances $INSTANCE &>/dev/null && echo " Shutting down"
|
||||
}
|
||||
#trap "terminate" EXIT
|
||||
sleep 30
|
||||
status=""
|
||||
while [[ "$status" != "running" ]]; do
|
||||
info=$(ec2-describe-instances 2>/dev/null | grep $INSTANCE)
|
||||
status=$(echo "$info" | cut -f 6 | grep run)
|
||||
echo " Waiting..."
|
||||
sleep 5
|
||||
if [[ $status == "running" ]]; then
|
||||
echo "-----> $INSTANCE has succesfully booted!"
|
||||
break
|
||||
fi
|
||||
done
|
||||
PUBLIC_IP=$(echo "$info" | awk '{print $14}')
|
||||
echo "-----> Waiting for SSH on instance..."
|
||||
sleep 10
|
||||
echo "-----> Connecting and running boostrap script..."
|
||||
indent() { sed "s/^/ /"; }
|
||||
cat ../bootstrap.sh | ssh -o "StrictHostKeyChecking=no" ubuntu@$PUBLIC_IP "HOSTNAME=$PUBLIC_IP sudo bash" 2>/dev/null | indent
|
||||
Reference in New Issue
Block a user