Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LocalNet] Run Relayer and AppGateServer #179

Merged
merged 6 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ load("ext://restart_process", "docker_build_with_restart")
load("ext://helm_resource", "helm_resource", "helm_repo")

# A list of directories where changes trigger a hot-reload of the sequencer
hot_reload_dirs = ["app", "cmd", "tools", "x"]
hot_reload_dirs = ["app", "cmd", "tools", "x", "pkg"]

# Create a localnet config file from defaults, and if a default configuration doesn't exist, populate it with default values
localnet_config_path = "localnet_config.yaml"
localnet_config_defaults = {
"relayers": {"count": 1},
"gateways": {"count": 1},
"appgateservers": {"count": 1},
# By default, we use the `helm_repo` function below to point to the remote repository
# but can update it to the locally cloned repo for testing & development
"helm_chart_local_repo": {"enabled": False, "path": "../helm-charts"},
Expand Down Expand Up @@ -127,11 +128,23 @@ helm_resource(
poktroll_chart,
flags=[
"--values=./localnet/kubernetes/values-common.yaml",
"--values=./localnet/kubernetes/values-relayer.yaml",
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2023-11-14 at 19 44 45

Still getting this error with the relayers in tilt. Is it still looking for the old command and not the new one?

Copy link
Member Author

@okdas okdas Nov 14, 2023

Choose a reason for hiding this comment

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

I am surprised you still see that, as we no longer have the pocketd binary. Let's circle back to this if you still have that issue once we merge everything.

Copy link
Member Author

Choose a reason for hiding this comment

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

Confirmed: this would not happen on a PR with relayminer implemented. We just need to merge everything.

"--set=replicaCount=" + str(localnet_config["relayers"]["count"]),
],
image_deps=["poktrolld"],
image_keys=[("image.repository", "image.tag")],
)
helm_resource(
"appgateservers",
poktroll_chart,
flags=[
"--values=./localnet/kubernetes/values-common.yaml",
"--values=./localnet/kubernetes/values-appgateserver.yaml",
"--set=replicaCount=" + str(localnet_config["appgateservers"]["count"]),
],
image_deps=["poktrolld"],
image_keys=[("image.repository", "image.tag")],
)

# Configure tilt resources (tilt labels and port forwards) for all of the nodes above
k8s_resource(
Expand All @@ -151,4 +164,10 @@ k8s_resource(
resource_deps=["sequencer"],
port_forwards=["8545", "8546", "40005"],
)
k8s_resource(
"appgateservers",
labels=["blockchains"],
resource_deps=["sequencer"],
port_forwards=["42069", "40006"],
)
k8s_resource("anvil", labels=["blockchains"], port_forwards=["8547"])
2 changes: 2 additions & 0 deletions localnet/kubernetes/values-appgateserver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appgateserver:
enable: true
2 changes: 2 additions & 0 deletions localnet/kubernetes/values-relayer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
relayer:
Copy link
Member

Choose a reason for hiding this comment

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

Per @bryanchriswhite's comment, we need to rename this to relayminer

enable: true