Commit Graph

47 Commits

Author SHA1 Message Date
Wasif Iqbal
ba79e46afc fix: ack script (#2198)
## Why is this change needed?

- fix: remove parentheses for prompt, which causes changes to occur in
sub shell and are not persisted to the environment file

## Merge Checklist

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
2024-07-18 20:43:27 +00:00
Wasif Iqbal
cf8c50c510 fix: force acknowledgement of no rewards for existing hubs (#2193)
## Why is this change needed?

Force acknowledgement of no rewards for hubs that are already running

## 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/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.


<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to add a prompt for hub operator agreement
before running the script and updating the environment file accordingly.

### Detailed summary
- Added a function `prompt_for_hub_operator_agreement` to prompt for
agreement
- Created a function `update_env_file` to update or create the
environment file based on agreement
- Improved user input handling and validation
- Added logic to check for existing agreement in the environment file
- Updated the script flow to handle agreement properly

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-07-16 15:05:39 -05:00
Wasif Iqbal
e0cb238cd0 Revert "fix: force acknowledgement of no rewards for existing hubs" (#2184)
Reverts farcasterxyz/hub-monorepo#2154

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to refactor the
`prompt_for_hub_operator_agreement` function in `hubble.sh` for better
user interaction.

### Detailed summary
- Refactored the `prompt_for_hub_operator_agreement` function for
improved user experience
- Removed unnecessary file operations and simplified the prompt logic
- Moved the prompt logic outside the function for better readability and
maintenance

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-07-15 14:09:08 -05:00
Wasif Iqbal
e304f0b2c0 fix: force acknowledgement of no rewards for existing hubs (#2154)
## Why is this change needed?

- Force acknowledgement of no rewards for hubs that are already running 

## 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/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to add a prompt for hub operator agreement
before proceeding with hub startup.

### Detailed summary
- Added a function `prompt_for_hub_operator_agreement()` to handle
agreement prompt
- Introduced `update_env_file()` to update or create `.env` file with
agreement status
- Improved user interaction with clear messages and input validation
- Ensured hub operator agreement before executing hub-related commands

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-07-10 17:44:54 -05:00
Wasif Iqbal
b5ff774a9c feat: add hub service agreement - there will be no rewards for running a hub (#2142)
## Why is this change needed?

⚠️ THERE WILL BE NO REWARDS FOR RUNNING A HUB

## 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
- [x] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR adds a hub service agreement feature to the Hubble script,
requiring hub operators to agree to terms before starting the hub.

### Detailed summary
- Added function `prompt_for_hub_operator_agreement` to prompt hub
operators to agree to terms
- Prompt displays a warning about no rewards for running the hub
- Operators must type "Yes" to proceed
- Implemented input validation for agreement
- Integration of agreement prompt before starting or upgrading the hub

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-07-09 18:50:56 -05:00
iwantanode
b27aa83f2e Docs improvements (#2046)
Hello
I fixed some typos in the code, code comments and docs,
Hope it helps.
Br,
Tudor


farcaster ACC: @tudor 

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on improving code consistency by fixing typos and
grammatical errors across various files in the project.

### Detailed summary
- Fixed typos in function names and comments for better code readability
- Corrected grammatical errors in error messages and documentation for
clarity and consistency
- Updated wording for better understanding and adherence to project
standards

> The following files were skipped due to too many changes:
`apps/hubble/www/README.md`,
`apps/hubble/www/docs/docs/httpapi/httpapi.md`,
`apps/hubble/www/docs/docs/api.md`

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-06-13 11:35:28 -07:00
Shane da Silva
1c90a6883a [chore] Remove remaining Envoy references (#2037)
## Motivation

We no longer encourage using the grpc-web integration, therefore there's
no need for Envoy to be used when deploying hubs any more.

## Change Summary

Remove all references to Envoy.

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [x] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)


<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to remove unused files related to Envoy in the
`hubble` app and refactor some functions for better clarity.

### Detailed summary
- Removed unused Envoy-related files (`README.md`, `envoy.yaml`,
`envoy-start.sh`)
- Refactored functions for fetching and storing files
- Updated Docker installation message
- Improved crontab setup logic

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-06-10 08:58:56 -07:00
Shane da Silva
f80582103c [chore] Remove old replicator (#2036)
## Motivation

This has been replaced by the Shuttle package.

## Change Summary

Remove it to help prevent confusion.

## Merge Checklist

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [x] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)


<!-- start pr-codex -->

---

## PR-Codex overview
This PR removes the `replicator` module and all related files from the
project.

### Detailed summary
- Deleted `Dockerfile.replicator`
- Removed `replicator` scripts and configurations
- Eliminated `replicator` source code, jobs, processors, and migrations

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-06-10 08:58:48 -07:00
Bryan Stitt
b3a3a0a62c add check for SKIP_CRONTAB=true (#1815)
## Motivation

We handle our upgrades manually.

## Change Summary

Add a check for `SKIP_CRONTAB=true` into the upgrade script.

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [ ] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [ ] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)

<!-- start pr-codex -->

---

## PR-Codex overview
This PR increases the version of the script to 5 and introduces a
feature to skip installing the autoupgrade crontab by setting
`SKIP_CRONTAB` in the `.env` file.

### Detailed summary
- Updated `CURRENT_VERSION` to "5"
- Added check to skip crontab setup if `SKIP_CRONTAB` is set in `.env`
- Display message when skipping crontab setup
- Updated help message to include instructions for skipping crontab
installation

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-03-14 11:55:06 -07:00
Tim Robinson
56288e4cbc Add instructions to run replicator manually (#1650)
## Motivation

There is currently no instructions to run the replicator manually. The
automatic install script wouldn't work correctly for me as I already had
something else running on port 9000 and I needed to make some manual
docker-compose changes.

So adding these scripts and commands for others who wish to run it
without the automatic script.

## Change Summary

- Adds instructions to replicator README to run using the docker compose
file without the automatic script.
- Adds .env.sample file for this manual docker compose run
- Fixes small bug with replicator.sh script where it was echo'ing
information to the terminal instead of the .env file.

## 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/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
- [ ] All [commits have been
signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits)

## Additional Context

If this is a relatively large or complex change, provide more details
here that will help reviewers

<!-- start pr-codex -->

---

## PR-Codex overview
### Detailed summary
- The `replicator.sh` script now appends a line to the `.env` file.
- The `.env.sample` file in the `replicator` app has been updated with
new environment variables.
- The `README.md` file in the `replicator` app now includes instructions
for automatic and manual setup.

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
2024-02-23 18:10:10 -08:00
Georgios Konstantopoulos
de63c47e96 fix: hubble.sh compatible w/ self-hosted eth nodes (#1636)
Ethereum JSON-RPC requires passing content-type application/json when talking to a node you're running yourself e.g. reth
2024-02-01 12:02:45 -08:00
adityapk00
6bfb694bff fix: Handle docker-compose versions (#1581) 2023-11-13 08:32:09 -06:00
Sanjay
e808a4ec5c fix: Fallback to docker-compose if docker install fails (#1552) 2023-10-31 16:01:20 -07:00
Shane da Silva
e9a5aec3a9 Increase default CONCURRENCY for replicator (#1550)
Since most users seem to connect to a remote hub, increase the default
concurrency.
2023-10-31 14:41:33 -07:00
Sanjay
559afd0e14 fix: hubble autoupgrade should ensure dependencies and clean unused docker data (#1542)
* fix: hubble autoupgrade should ensure dependencies and clean unused docker data

* Add env var to bypass self upgrade

* Don't restart more than 5 times on failure

* Fix docker command
2023-10-20 13:07:46 -07:00
Shane da Silva
78eef248dd fix: Correct additional typos in replicator.sh (#1513)
Missed in 2781c2c9.
2023-10-12 10:54:44 -07:00
Shane da Silva
2781c2c902 Fix prompt for HUB_SSL in replicator.sh (#1512)
We were infinite looping because we weren't looking at the correct
value.
2023-10-12 10:20:03 -07:00
Shane da Silva
49c2ba4684 fix: Persist Grafana across restarts for Replicator Docker Compose (#1495) 2023-10-10 11:06:43 -07:00
adityapk00
17ca659bce fix: Persist grafana data across restart (#1494) 2023-10-10 13:05:46 -05:00
Shane da Silva
a25921f36e fix: Correct Grafana port for Replicator dashboard (#1491) 2023-10-10 08:57:00 -07:00
adityapk00
da4e908ff3 chore: Remoce crontab cmd from replicator.sh (#1489) 2023-10-10 10:40:26 -05:00
adityapk00
c7b28b0689 fix: Install hubble.sh crontab for root instead of user (#1485) 2023-10-10 10:18:45 -05:00
Shane da Silva
98b8dee11a fix: Remove infinite prompt loop in replicator.sh (#1479) 2023-10-09 22:47:32 -07:00
Shane da Silva
4ce5daf0b6 fix: Don't check if hub exposes HTTP port in replicator.sh (#1478)
Not all hubs support this. Let's just accept what the user provides for
now.
2023-10-09 22:46:30 -07:00
Shane da Silva
e95123a30e Fix POSTGRES_URL default for replicator (#1476) 2023-10-09 22:36:04 -07:00
Shane da Silva
e4fff9b970 Update replicator.sh to ensure Postgres/Redis are running (#1471) 2023-10-09 21:39:08 -07:00
Sanjay
902447f89d fix: Fix overzealous crontab upgrade entry (#1469) 2023-10-09 21:17:14 -07:00
Shane da Silva
998f61b099 Fix Replicator Docker Compose config and bootstrap script (#1468)
We want the bootstrap script to ask the user where their hub is.
2023-10-09 21:16:20 -07:00
Shane da Silva
26ca3344ff chore: Update replicator script (#1466)
The other tag doesn't seem to work with GitHub's URL scheme, so switch
to one similar to what we did with Hubble.
2023-10-09 17:07:32 -07:00
Shane da Silva
25f549a31e Update tag used by replicator.sh script (#1463) 2023-10-09 14:13:41 -07:00
Shane da Silva
909c383973 feat: Dedicated Replicator app (#1462) 2023-10-09 12:56:24 -07:00
adityapk00
833d965147 fix: hubble.sh - Dont delete before overwriting (#1419)
Fixed #1395
2023-09-24 10:33:11 -05:00
Sanjay
b8593373ed fix: Support reading grafana creds from env file (#1410) 2023-09-20 15:51:06 -07:00
Sanjay
13b4144a59 feat: add autouprade to hubble.sh (#1404)
* feat: add autoupgrade to hubble.sh

* Fix tests
2023-09-20 08:47:37 -07:00
adityapk00
bc04a8545a fix: Remove "id" and set to null when installing grafana dashboard (#1381) 2023-09-11 12:47:14 -05:00
adityapk00
8d21803e07 feat: Add "up" and "down" commands to hubble.sh (#1372) 2023-09-09 08:56:07 -07:00
adityapk00
ac1f6ac20e fix: Fetch envoy config during hubble.sh (#1364) 2023-09-08 10:01:12 -05:00
adityapk00
93e43a8497 fix: Use hashes to compare hubble.sh upgrade (#1359) 2023-09-07 16:47:45 -05:00
adityapk00
f5f3756bac fix: Update script version (#1358) 2023-09-07 16:09:52 -05:00
adityapk00
bc416dbe8c feat: Add hub operator's FID (#1352) 2023-09-07 08:04:56 -05:00
adityapk00
cff71488ee chore: Remove Goerli rpc (#1318) 2023-09-01 12:29:20 -05:00
adityapk00
8ea938ab64 fix: Handle both 'docker-compose' and 'docker compose' (#1296) 2023-08-28 08:49:11 -05:00
adityapk00
fb2cc80fef fix: hubble.sh fixes (#1283)
* fix: hubble.sh fixes
2023-08-23 10:25:15 -05:00
adityapk00
27287d2d48 feat: hubble.sh installation script (#1278)
Add hubble.sh and hubble-bootstrap.sh scripts
2023-08-23 08:43:44 -05:00
Kind Jeff
4e6cb20677 fix(grafana): correct datasource configuration in grafana-dashboard.json (#1273) 2023-08-18 10:47:21 -05:00
adityapk00
f963148868 feat: Add statsd monitoring (#1251)
* feat: Add grafana/statsd dashboard

* Add instructions

* update docs
2023-08-14 13:31:33 -05:00
Shane da Silva
aebbb47b3c chore: Automate Docker Hub publishing (#1138)
Set up automation so that when we push the `@farcaster/hubble@X.Y.Z` tag
we will automatically kick off a Docker build and push the resulting
image layers + tag to Docker Hub.
2023-07-14 21:18:21 -04:00