-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrated AWS EC2 and Digital Ocean tutorials directly into Farcaste…
…r site (#268) Fixes issue #267 My Warpcast username: pashu777 ### Why is this change needed? Previously, the AWS EC2 and Digital Ocean tutorials redirected users to external Notion pages. This change integrates these tutorials directly into the Farcaster documentation site. By doing so, users can now access all relevant setup instructions without needing to navigate away from the Farcaster.xyz site, improving the overall user experience. ### Change Summary - Added `aws-ec2.md` with the complete setup guide for AWS EC2. - Added `digital-ocean.md` with the complete setup guide for Digital Ocean. - Included all necessary images for the tutorials and updated their paths. - Updated `tutorials.md` to include links to the new tutorials. ### Merge Checklist *Choose all relevant options below by adding an `x` now or at any time before submitting for review:* - [x] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [ ] PR has a [changeset](https://github.com/atlassian/changesets) - [x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [x] PR includes [documentation](https://docs.github.com/en/github/building-a-strong-community/setting-guidelines-for-repository-contributors) if necessary. <!-- start pr-codex --> --- ## PR-Codex overview The focus of this PR is to update the Hubble setup guides for AWS EC2, Digital Ocean, and Google Cloud Platform (GCP) with new file structures and content improvements. ### Detailed summary - Renamed and restructured Hubble setup guides for AWS EC2 and Digital Ocean - Updated Google Cloud Platform (GCP) setup guide with new content and images - Improved clarity and consistency across all cloud provider setup guides > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
Showing
17 changed files
with
106 additions
and
26 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Set up Hubble on EC2 [Public] | ||
|
||
## Launch EC2 Instance | ||
|
||
*You should expect to pay roughly $100 / month for an EC2 instance that can run Hubble.* | ||
|
||
1. In AWS, go to EC2 > **Instances** > **Launch Instances** | ||
|
||
<figure><img src="../assets/aws_instances.png" /></figure> | ||
|
||
2. Give it a name and select ***Ubuntu Server 22.04 LTS (HVM), SSD Volume Type*** and ***64-bit (x86)*** | ||
|
||
<figure><img src="../assets/aws_ubuntu_server.png" /></figure> | ||
|
||
3. Choose **m5.xlarge** for instance type (~$70/mo) | ||
|
||
<figure><img src="../assets/aws_m5_xlarge.png" /></figure> | ||
|
||
4. In **Key pair (login)**, select **Create a new key pair** , then select RSA and *.pem* format, and save it | ||
|
||
<figure><img src="../assets/aws_key_pair.png" /></figure> | ||
|
||
5. In **Network settings**, select **Allow SSH traffic** from **Anywhere** | ||
|
||
<figure><img src="../assets/aws_allow_ssh.png" /></figure> | ||
|
||
6. In **Configure storage**, select **20 GiB** of gp3 storage ($30/mo) | ||
|
||
<figure><img src="../assets/aws_storage.png" /></figure> | ||
|
||
7. Click **Launch Instance** on the righthand side menu | ||
|
||
<figure><img src="../assets/aws_launch_instance.png" /></figure> | ||
|
||
## Configure Network Permissions | ||
|
||
1. Go to **EC2 → Instances** and Click on the **Instance ID** | ||
|
||
<figure><img src="../assets/aws_instance_id.png" /></figure> | ||
|
||
2. Click on **Security** > **Security groups** > (**Security Group ID**) | ||
|
||
<figure><img src="../assets/aws_security_groups.png" /></figure> | ||
|
||
3. Click on **Edit inbound rules** and **Edit outbound rules** on the group page | ||
|
||
<figure><img src="../assets/aws_click_edit.png" /></figure> | ||
|
||
4. Add rules until they match the screenshot below | ||
|
||
<figure><img src="../assets/aws_inbound rules.png" /></figure> | ||
|
||
5. Add port 2281 to the inbound rules if you wish to use the HTTP API | ||
|
||
<figure><img src="../assets/aws_ports.png" /></figure> | ||
|
||
## Connect to your Instance | ||
|
||
1. Find your *.pem* file from earlier and run `chmod 400 key.pem` | ||
2. Go to EC2 → Instances, click on the Instance ID and copy the IPv4 Address | ||
3. Connect with `ssh ubuntu@<ipv4 address> -i key.pem` | ||
|
||
## Setup and run Hubble | ||
|
||
Follow the remaining instructions on [installing Hubble](http://localhost:5173/operators/install.html) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Set up Hubble on DigitalOcean [Public] | ||
|
||
## 1. **Launch Droplet** | ||
|
||
*You should expect to pay roughly $70 / month for a Droplet instance that can run Hubble.* | ||
|
||
1. In DigitalOcean **Create > Droplet** | ||
2. Choose Image **Ubuntu** | ||
3. Choose version **22.10 x64** | ||
4. Choose size **General Purpose 8GB / 2 CPUs / 25GB SSD** | ||
5. Choose preferred Authentication Method | ||
6. Enter your preferred Hostname | ||
|
||
## 2. **Connect to your Instance** | ||
|
||
1. Launch a Console | ||
|
||
<figure><img src="../assets/digital_ocean_console.png" /></figure> | ||
|
||
## 3. **Setup and run Hubble** | ||
|
||
Follow the remaining instructions on [running hubble in the cloud](https://github.com/farcasterxyz/hub-monorepo/tree/main/apps/hubble#2-set-up-the-environment) | ||
|
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