Last active
October 20, 2020 20:35
-
-
Save sionc/6533552 to your computer and use it in GitHub Desktop.
Deploying a crucible (code review tool) instance on AWS
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
Instructions | |
------------------- | |
- Go to Amazon Web Services (http://aws.amazon.com/) and create an account | |
- Launch the AWS management console (https://console.aws.amazon.com/console/home?#) | |
- Select EC2 | |
- Make sure to select N. California as your region setting (top right corner) | |
- Create a new EC2 instance | |
- Select Amazon Linux as the operating system | |
- Use defaults for everything else | |
- Create a private key (e.g. "crucible") | |
- Save the *.pem file into ~/.ec2/ | |
- Then change the permissions on the *.pem file | |
- $chmod 400 ~/.ec2/crucible.pem | |
- Launch the instance | |
- Try SSHing into the instance | |
- $ssh -i ~/.ec2/crucible.pem [email protected] | |
- where ~/.ec2/crucible.pem = Location of the local *.pem file | |
- where ec2-user = Default user | |
- where ec2-54-215-217-199.us-west-1.compute.amazonaws.com = public DNS name | |
- If you are able to SSH in, then go back to the command prompt on the local machine. | |
- Then transfer the crucible files from your local machine to the remote machine using SCP | |
- $scp -i ~/.ec2/crucible.pem -r /crucible/fecru-3.1.2 [email protected]:~ | |
- SSH into the instance again | |
- Download openjdk 7 | |
- $sudo yum install java-1.7.0-openjdk | |
- Switch to java 1.7 | |
- $sudo alternatives --config java | |
- Type '2' to select 1.7 | |
- Follow instructions in https://confluence.atlassian.com/display/CRUCIBLE/Installing+Crucible+on+Linux+and+Mac | |
- Go to AWS management console | |
- Apply a custom TCP rule for port 8060 for the security group associated with the instance (Security options on the left) | |
Helpful links | |
------------------- | |
https://confluence.atlassian.com/display/CRUCIBLE/Installing+Crucible+on+Linux+and+Mac | |
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html | |
http://paulstamatiou.com/how-to-getting-started-with-amazon-ec2 | |
https://console.aws.amazon.com/console/home?# | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment