Start all pyth tilt pods by default (#339)

* Start all pyth tilt pods by default

* Remove pyth tiltfile variable
This commit is contained in:
Tom Pointon 2022-10-11 14:15:34 +01:00 committed by GitHub
parent b3dbc96086
commit dec51832bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 81 additions and 83 deletions

164
Tiltfile
View File

@ -47,7 +47,6 @@ gcpProject = cfg.get("gcpProject", "local-dev")
bigTableKeyPath = cfg.get("bigTableKeyPath", "./event_database/devnet_key.json")
webHost = cfg.get("webHost", "localhost")
ci = cfg.get("ci", False)
pyth = cfg.get("pyth", ci)
if cfg.get("manual", False):
@ -171,95 +170,94 @@ docker_build(
],
)
if pyth:
# pyth autopublisher
docker_build(
ref = "pyth",
context = ".",
dockerfile = "third_party/pyth/Dockerfile.pyth",
)
k8s_yaml_with_ns("./devnet/pyth.yaml")
# pyth autopublisher
docker_build(
ref = "pyth",
context = ".",
dockerfile = "third_party/pyth/Dockerfile.pyth",
)
k8s_yaml_with_ns("./devnet/pyth.yaml")
k8s_resource(
"pyth",
resource_deps = ["solana-devnet"],
labels = ["pyth"],
trigger_mode = trigger_mode,
)
k8s_resource(
"pyth",
resource_deps = ["solana-devnet"],
labels = ["pyth"],
trigger_mode = trigger_mode,
)
# pyth2wormhole client autoattester
docker_build(
ref = "p2w-attest",
context = ".",
only = ["./solana", "./third_party", "./pythnet"],
dockerfile = "./third_party/pyth/Dockerfile.p2w-attest",
ignore = ["./solana/*/target"],
)
# pyth2wormhole client autoattester
docker_build(
ref = "p2w-attest",
context = ".",
only = ["./solana", "./third_party", "./pythnet"],
dockerfile = "./third_party/pyth/Dockerfile.p2w-attest",
ignore = ["./solana/*/target"],
)
k8s_yaml_with_ns("devnet/p2w-attest.yaml")
k8s_resource(
"p2w-attest",
resource_deps = ["solana-devnet", "pyth", "guardian"],
port_forwards = [],
labels = ["pyth"],
trigger_mode = trigger_mode,
)
k8s_yaml_with_ns("devnet/p2w-attest.yaml")
k8s_resource(
"p2w-attest",
resource_deps = ["solana-devnet", "pyth", "guardian"],
port_forwards = [],
labels = ["pyth"],
trigger_mode = trigger_mode,
)
# Pyth2wormhole relay
docker_build(
ref = "p2w-relay",
context = ".",
dockerfile = "third_party/pyth/p2w-relay/Dockerfile.pyth_relay",
)
k8s_yaml_with_ns("devnet/p2w-terra-relay.yaml")
k8s_resource(
"p2w-terra-relay",
resource_deps = ["pyth", "p2w-attest", "spy", "terra-terrad", "wasm-gen"],
port_forwards = [
port_forward(4200, name = "Rest API (Status + Query) [:4200]", host = webHost),
port_forward(8081, name = "Prometheus [:8081]", host = webHost)],
labels = ["pyth"]
)
# Pyth2wormhole relay
docker_build(
ref = "p2w-relay",
context = ".",
dockerfile = "third_party/pyth/p2w-relay/Dockerfile.pyth_relay",
)
k8s_yaml_with_ns("devnet/p2w-terra-relay.yaml")
k8s_resource(
"p2w-terra-relay",
resource_deps = ["pyth", "p2w-attest", "spy", "terra-terrad", "wasm-gen"],
port_forwards = [
port_forward(4200, name = "Rest API (Status + Query) [:4200]", host = webHost),
port_forward(8081, name = "Prometheus [:8081]", host = webHost)],
labels = ["pyth"]
)
k8s_yaml_with_ns("devnet/p2w-evm-relay.yaml")
k8s_resource(
"p2w-evm-relay",
resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
port_forwards = [
port_forward(4201, container_port = 4200, name = "Rest API (Status + Query) [:4201]", host = webHost),
port_forward(8082, container_port = 8081, name = "Prometheus [:8082]", host = webHost)],
labels = ["pyth"]
)
k8s_yaml_with_ns("devnet/p2w-evm-relay.yaml")
k8s_resource(
"p2w-evm-relay",
resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
port_forwards = [
port_forward(4201, container_port = 4200, name = "Rest API (Status + Query) [:4201]", host = webHost),
port_forward(8082, container_port = 8081, name = "Prometheus [:8082]", host = webHost)],
labels = ["pyth"]
)
# Pyth Price service
docker_build(
ref = "pyth-price-service",
context = ".",
dockerfile = "third_party/pyth/price-service/Dockerfile.price_service",
)
k8s_yaml_with_ns("devnet/pyth-price-service.yaml")
k8s_resource(
"pyth-price-service",
resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
port_forwards = [
port_forward(4202, container_port = 4200, name = "Rest API (Status + Query) [:4202]", host = webHost),
port_forward(6202, container_port = 6200, name = "WSS API [:6202]", host = webHost),
port_forward(8083, container_port = 8081, name = "Prometheus [:8083]", host = webHost)],
labels = ["pyth"]
)
# Pyth Price service
docker_build(
ref = "pyth-price-service",
context = ".",
dockerfile = "third_party/pyth/price-service/Dockerfile.price_service",
)
k8s_yaml_with_ns("devnet/pyth-price-service.yaml")
k8s_resource(
"pyth-price-service",
resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
port_forwards = [
port_forward(4202, container_port = 4200, name = "Rest API (Status + Query) [:4202]", host = webHost),
port_forward(6202, container_port = 6200, name = "WSS API [:6202]", host = webHost),
port_forward(8083, container_port = 8081, name = "Prometheus [:8083]", host = webHost)],
labels = ["pyth"]
)
# Pyth EVM Watcher
docker_build(
ref = "pyth-evm-watcher",
context = "third_party/pyth/evm-watcher/",
dockerfile = "third_party/pyth/evm-watcher/Dockerfile",
)
k8s_yaml_with_ns("devnet/pyth-evm-watcher.yaml")
k8s_resource(
"pyth-evm-watcher",
resource_deps = ["eth-devnet"],
labels = ["pyth"]
)
# Pyth EVM Watcher
docker_build(
ref = "pyth-evm-watcher",
context = "third_party/pyth/evm-watcher/",
dockerfile = "third_party/pyth/evm-watcher/Dockerfile",
)
k8s_yaml_with_ns("devnet/pyth-evm-watcher.yaml")
k8s_resource(
"pyth-evm-watcher",
resource_deps = ["eth-devnet"],
labels = ["pyth"]
)
k8s_yaml_with_ns("devnet/eth-devnet.yaml")