Skip to content

Conversation

@jorgecuesta
Copy link
Collaborator

@jorgecuesta jorgecuesta commented Jul 4, 2025

Summary

  • Replace all the tooling with docker compose in favor of a full integration with Tilt.
  • Replace helm chart with kustomize which allow to be used as base for a production environment.
  • Allow fast turn on for any network: mainnet, beta, alpha or localnet
  • Allow easy overwrite of critical configurations with .env file

Issue

Current tooling was very confusing and was also not working well with poktroll

Type of change

Select one or more:

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Documentation
  • Other (specify)

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have commented my code
  • I have performed a self-review of my own code; both comments & source code
  • I create and reference any new tickets, if applicable
  • I have left TODOs throughout the codebase, if applicable

@jorgecuesta jorgecuesta self-assigned this Jul 4, 2025
@jorgecuesta jorgecuesta added documentation Improvements or additions to documentation enhancement New feature or request tooling labels Jul 4, 2025
@jorgecuesta jorgecuesta changed the base branch from main to feature/enhancements-and-fixes July 4, 2025 13:22
Copy link
Collaborator

@bryanchriswhite bryanchriswhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work @jorgecuesta - thank you! ❤️‍🔥 🚀 🙌

As discussed, merged when ready - this is wonderful. 😎

@jorgecuesta jorgecuesta marked this pull request as ready for review July 5, 2025 03:37
@jorgecuesta
Copy link
Collaborator Author

@Alann27 I need you open a PR with your changes, so this can be point to main after yours is merged.

@bryanchriswhite
Copy link
Collaborator

image

postgresql service

image

pgadmin4 service

@bryanchriswhite
Copy link
Collaborator

bryanchriswhite commented Jul 7, 2025

Could you restore the link port forward the playground endpoint in the "query" service to the graphiql playground? (see: #57 (comment))
Wdyt about also adding a link to the indexer API in the "indexer" service?

@Alann27
Copy link
Contributor

Alann27 commented Jul 7, 2025

@Alann27 I need you open a PR with your changes, so this can be point to main after yours is merged.

@jorgecuesta here: #58

@bryanchriswhite
Copy link
Collaborator

Can we move "commons" and "static server" out of this section? I find that they take up visual space but aren't relevant to the developer.

image

Base automatically changed from feature/enhancements-and-fixes to main July 7, 2025 21:38
…ha or localnet easily.

WIP:
1. add docker build scripting to generate the images manually if needed.
2. update README.md
…handling

- Removed `api_endpoint` configurations from multiple `cm.yaml` overlays (alpha, beta, mainnet, localnet) as they are no longer required.
- Updated Tiltfile dependencies by introducing the `resource_deps` property across multiple components (`commons`, `postgresql`, `pgadmin`, `indexer`, `query`, and `static-server`).
- Added `only_db` feature in `Tiltfile` for developers working solely with databases.
- Centralized network constants (`mainnet`, `testnet_alpha`, `testnet_beta`, `localnet`) and default credentials in `cons.Tiltfile` for reuse across the project.
- Added support for `uuid-ossp` extension in PostgreSQL values for extended UUID functionality.
- Refactored file paths in the main `Tiltfile` to leverage the `base_path` property for better flexibility and maintainability.
The commit removes obsolete Kubernetes and Docker configuration files like indexer.dockerfile, various YAML files for Kubernetes resources, and PostgreSQL configurations. These files are no longer relevant to the current project setup.

- Deleted `indexer.dockerfile`, previously used for Docker image creation, as it is no longer required.
- Removed Kubernetes deployment files like `configmap.yaml`, `db-secrets.yaml`, `indexer-deployment.yaml`, and more, as the project no longer operates in a Kubernetes environment.
- Deleted PostgreSQL Helm values file (postgresql-values.yaml) and related setup scripts, which are no longer being referenced.
- Centralized reusable constants and defaults (e.g., `defaultEmail`, `defaultPassword`, `mainnet`, `testnet_beta`) into `cons.Tiltfile` to reduce hardcoding and improve maintainability.
- Updated the main `Tiltfile` and others (`pgadmin`, `indexer`, `query`) to load values from `cons.Tiltfile`.
- Enhanced Port Forward configurations for `indexer`, `pgadmin`, and `query` to include specific labels and metadata (e.g., links to documentation and tools).
- Improved `pgadmin` setup by integrating fallback defaults for email and password, with warnings for clarity.
- Streamlined configuration across Tiltfiles to improve code readability and consistency.
- Corrected the relative path for `cons.Tiltfile` in the main `Tiltfile` to fix a loading issue.
- Updated `tools_labels` to replace `pocketdex-db` with `pocketdex-tools` for consistency.
- Adjusted `pgadmin` port forward from port `50` to `80` for proper web interface accessibility.
- Replaced `apps_labels` with `tools_labels` for better alignment in `deployment` configurations.
@jorgecuesta
Copy link
Collaborator Author

@bryanchriswhite everything done:

  1. Indexer now show links to Subql Docs and forward the port (I do not found in docs how that port/server is used anyway)
  2. Query now show links to Graphiql Playground Docs and forward the port
  3. PgAdmin now show the user/psw correctly and forward to it.
  4. Renamed label pocketdex-db to pocketdex-tools and move static-server into it.

You need to update also poktroll repo since I do a minor change there too.

Let me know to merge this asap. Any non-critical will need to be delayed since there are top priorities like the rewards/mint/burn: pokt-network/poktroll#1642

@bryanchriswhite
Copy link
Collaborator

bryanchriswhite commented Jul 8, 2025

@jorgecuesta I pushed a couple of small commits, but otherwise LGTM - let's goooo! 🙌

@jorgecuesta jorgecuesta merged commit 6f0222a into main Jul 8, 2025
3 checks passed
@jorgecuesta jorgecuesta deleted the fix/tilt branch July 8, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants