Installing Koken on EC2January 13, 2016
Here’s how to quickly get Koken installed on Amazon EC2:
- Go to the AWS website and log in.
- Create a new
t2.micro(or whatever the current free tier instance size is) instance.
- Select the Amazon Machine Image (AMI) when asked.
- Create a new key if you don’t have one already, when prompted. Keep the file that is downloaded for you.
- When creating a security group, be sure to add a rule to allow HTTP access from everywhere.
- After creating your instance, note it’s public address and open up a shell.
- Find your key file and run
chmod 600 <key-name>.pem.
ssh -i <key-name>.pem ec2-user@<ec2-instance-public-address>.
- Run the following commands on your EC2 instance:
sudo yum update -y sudo yum install -y docker sudo service docker start sudo usermod -a -G docker ec2-user
exitand then run step 8 again.
- Run the following:
wget -qO - https://gist.githubusercontent.com/bradleyboy/48b67b5e9ebf91031a19/raw/create_koken.sh | sudo bash
- Done! You should now be able to open your EC2 instance’s public address in a web browser to complete the installation process.
- (Optional) To use your own domain or subdomain, create a CNAME record on your DNS records to point to the EC2 instance’s public address.