Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/relayer/cli' into relayer/cli
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne committed Nov 11, 2023
2 parents 9ba2dc1 + bf936e6 commit c96e5c5
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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/relayer"]

# 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"
Expand All @@ -11,7 +11,7 @@ localnet_config_defaults = {
"gateways": {"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"},
"helm_chart_local_repo": {"enabled": True, "path": "../helm-charts"},
}
localnet_config_file = read_yaml(localnet_config_path, default=localnet_config_defaults)
localnet_config = {}
Expand Down Expand Up @@ -122,16 +122,16 @@ helm_resource(
image_deps=["poktrolld"],
image_keys=[("image.repository", "image.tag")],
)
helm_resource(
"relayers",
poktroll_chart,
flags=[
"--values=./localnet/kubernetes/values-common.yaml",
"--set=replicaCount=" + str(localnet_config["relayers"]["count"]),
],
image_deps=["poktrolld"],
image_keys=[("image.repository", "image.tag")],
)
# helm_resource(
# "relayers",
# poktroll_chart,
# flags=[
# "--values=./localnet/kubernetes/values-common.yaml",
# "--set=replicaCount=" + str(localnet_config["relayers"]["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 @@ -145,10 +145,10 @@ k8s_resource(
resource_deps=["celestia-rollkit"],
port_forwards=["36657", "40004"],
)
k8s_resource(
"relayers",
labels=["blockchains"],
resource_deps=["sequencer"],
port_forwards=["8545", "8546", "40005"],
)
# k8s_resource(
# "relayers",
# labels=["blockchains"],
# resource_deps=["sequencer"],
# port_forwards=["8545", "8546", "40005"],
# )
k8s_resource("anvil", labels=["blockchains"], port_forwards=["8547"])

0 comments on commit c96e5c5

Please sign in to comment.