Getting the Source Code on EC2
To deploy MyCRT, you must obtain MyCRT's source code, install al of MyCRT's dependencies, and build the MyCRT project. MyCRT is still in active development - future developments of this project could be automated.
1: Launch an EC2 Instance
From the EC2 dashboard, click "Launch Instance".
Select "Ubuntu Server 16.04 LTS (HVM), SSD Volume Type", t2.micro, and click "Launch".
Choose or create a key pair to use when logging into the instance. After a few minutes, your instance will be available for use. Use your key pair and instance public DNS or IP address to SSH in.
Modify your instance's security group to allow HTTP traffic from all sources.
2: Obtain the MyCRT source code
After SSH'ing in, run the following command to get the source code. Git should come pre-installed on the machine.
This will create a mycrt
directory for the repository.
3: Install Dependencies
Running the MyCRT service will require that the following dependencies be installed.
Update apt-get
MySQL Client
Running mysql --version
should show mysql Ver 14.14 Distrib 5.7.21, for Linux (x86_64) using EditLine wrapper
Node and NPM
This will install both node and npm. node --version
should show at least v8.11.1, and npm --version
should show at least 5.6.0
Ruby
Sass
Chromedriver
4: Build MyCRT
Now, we should be able to build MyCRT. This will ensure that everything has gone well so far!
To build MyCRT, run the following:
This will take several minutes, and there should be no errors in the output.
Next Step
pageCreate an RDS InstanceLast updated