Skip to content

Commit dec5183

Browse files
authored
Start all pyth tilt pods by default (#339)
* Start all pyth tilt pods by default * Remove pyth tiltfile variable
1 parent b3dbc96 commit dec5183

File tree

1 file changed

+88
-90
lines changed

1 file changed

+88
-90
lines changed

Tiltfile

Lines changed: 88 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ gcpProject = cfg.get("gcpProject", "local-dev")
4747
bigTableKeyPath = cfg.get("bigTableKeyPath", "./event_database/devnet_key.json")
4848
webHost = cfg.get("webHost", "localhost")
4949
ci = cfg.get("ci", False)
50-
pyth = cfg.get("pyth", ci)
5150

5251

5352
if cfg.get("manual", False):
@@ -171,95 +170,94 @@ docker_build(
171170
],
172171
)
173172

174-
if pyth:
175-
# pyth autopublisher
176-
docker_build(
177-
ref = "pyth",
178-
context = ".",
179-
dockerfile = "third_party/pyth/Dockerfile.pyth",
180-
)
181-
k8s_yaml_with_ns("./devnet/pyth.yaml")
182-
183-
k8s_resource(
184-
"pyth",
185-
resource_deps = ["solana-devnet"],
186-
labels = ["pyth"],
187-
trigger_mode = trigger_mode,
188-
)
189-
190-
# pyth2wormhole client autoattester
191-
docker_build(
192-
ref = "p2w-attest",
193-
context = ".",
194-
only = ["./solana", "./third_party", "./pythnet"],
195-
dockerfile = "./third_party/pyth/Dockerfile.p2w-attest",
196-
ignore = ["./solana/*/target"],
197-
)
198-
199-
k8s_yaml_with_ns("devnet/p2w-attest.yaml")
200-
k8s_resource(
201-
"p2w-attest",
202-
resource_deps = ["solana-devnet", "pyth", "guardian"],
203-
port_forwards = [],
204-
labels = ["pyth"],
205-
trigger_mode = trigger_mode,
206-
)
207-
208-
# Pyth2wormhole relay
209-
docker_build(
210-
ref = "p2w-relay",
211-
context = ".",
212-
dockerfile = "third_party/pyth/p2w-relay/Dockerfile.pyth_relay",
213-
)
214-
k8s_yaml_with_ns("devnet/p2w-terra-relay.yaml")
215-
k8s_resource(
216-
"p2w-terra-relay",
217-
resource_deps = ["pyth", "p2w-attest", "spy", "terra-terrad", "wasm-gen"],
218-
port_forwards = [
219-
port_forward(4200, name = "Rest API (Status + Query) [:4200]", host = webHost),
220-
port_forward(8081, name = "Prometheus [:8081]", host = webHost)],
221-
labels = ["pyth"]
222-
)
223-
224-
k8s_yaml_with_ns("devnet/p2w-evm-relay.yaml")
225-
k8s_resource(
226-
"p2w-evm-relay",
227-
resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
228-
port_forwards = [
229-
port_forward(4201, container_port = 4200, name = "Rest API (Status + Query) [:4201]", host = webHost),
230-
port_forward(8082, container_port = 8081, name = "Prometheus [:8082]", host = webHost)],
231-
labels = ["pyth"]
232-
)
233-
234-
# Pyth Price service
235-
docker_build(
236-
ref = "pyth-price-service",
237-
context = ".",
238-
dockerfile = "third_party/pyth/price-service/Dockerfile.price_service",
239-
)
240-
k8s_yaml_with_ns("devnet/pyth-price-service.yaml")
241-
k8s_resource(
242-
"pyth-price-service",
243-
resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
244-
port_forwards = [
245-
port_forward(4202, container_port = 4200, name = "Rest API (Status + Query) [:4202]", host = webHost),
246-
port_forward(6202, container_port = 6200, name = "WSS API [:6202]", host = webHost),
247-
port_forward(8083, container_port = 8081, name = "Prometheus [:8083]", host = webHost)],
248-
labels = ["pyth"]
249-
)
250-
251-
# Pyth EVM Watcher
252-
docker_build(
253-
ref = "pyth-evm-watcher",
254-
context = "third_party/pyth/evm-watcher/",
255-
dockerfile = "third_party/pyth/evm-watcher/Dockerfile",
256-
)
257-
k8s_yaml_with_ns("devnet/pyth-evm-watcher.yaml")
258-
k8s_resource(
259-
"pyth-evm-watcher",
260-
resource_deps = ["eth-devnet"],
261-
labels = ["pyth"]
262-
)
173+
# pyth autopublisher
174+
docker_build(
175+
ref = "pyth",
176+
context = ".",
177+
dockerfile = "third_party/pyth/Dockerfile.pyth",
178+
)
179+
k8s_yaml_with_ns("./devnet/pyth.yaml")
180+
181+
k8s_resource(
182+
"pyth",
183+
resource_deps = ["solana-devnet"],
184+
labels = ["pyth"],
185+
trigger_mode = trigger_mode,
186+
)
187+
188+
# pyth2wormhole client autoattester
189+
docker_build(
190+
ref = "p2w-attest",
191+
context = ".",
192+
only = ["./solana", "./third_party", "./pythnet"],
193+
dockerfile = "./third_party/pyth/Dockerfile.p2w-attest",
194+
ignore = ["./solana/*/target"],
195+
)
196+
197+
k8s_yaml_with_ns("devnet/p2w-attest.yaml")
198+
k8s_resource(
199+
"p2w-attest",
200+
resource_deps = ["solana-devnet", "pyth", "guardian"],
201+
port_forwards = [],
202+
labels = ["pyth"],
203+
trigger_mode = trigger_mode,
204+
)
205+
206+
# Pyth2wormhole relay
207+
docker_build(
208+
ref = "p2w-relay",
209+
context = ".",
210+
dockerfile = "third_party/pyth/p2w-relay/Dockerfile.pyth_relay",
211+
)
212+
k8s_yaml_with_ns("devnet/p2w-terra-relay.yaml")
213+
k8s_resource(
214+
"p2w-terra-relay",
215+
resource_deps = ["pyth", "p2w-attest", "spy", "terra-terrad", "wasm-gen"],
216+
port_forwards = [
217+
port_forward(4200, name = "Rest API (Status + Query) [:4200]", host = webHost),
218+
port_forward(8081, name = "Prometheus [:8081]", host = webHost)],
219+
labels = ["pyth"]
220+
)
221+
222+
k8s_yaml_with_ns("devnet/p2w-evm-relay.yaml")
223+
k8s_resource(
224+
"p2w-evm-relay",
225+
resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
226+
port_forwards = [
227+
port_forward(4201, container_port = 4200, name = "Rest API (Status + Query) [:4201]", host = webHost),
228+
port_forward(8082, container_port = 8081, name = "Prometheus [:8082]", host = webHost)],
229+
labels = ["pyth"]
230+
)
231+
232+
# Pyth Price service
233+
docker_build(
234+
ref = "pyth-price-service",
235+
context = ".",
236+
dockerfile = "third_party/pyth/price-service/Dockerfile.price_service",
237+
)
238+
k8s_yaml_with_ns("devnet/pyth-price-service.yaml")
239+
k8s_resource(
240+
"pyth-price-service",
241+
resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
242+
port_forwards = [
243+
port_forward(4202, container_port = 4200, name = "Rest API (Status + Query) [:4202]", host = webHost),
244+
port_forward(6202, container_port = 6200, name = "WSS API [:6202]", host = webHost),
245+
port_forward(8083, container_port = 8081, name = "Prometheus [:8083]", host = webHost)],
246+
labels = ["pyth"]
247+
)
248+
249+
# Pyth EVM Watcher
250+
docker_build(
251+
ref = "pyth-evm-watcher",
252+
context = "third_party/pyth/evm-watcher/",
253+
dockerfile = "third_party/pyth/evm-watcher/Dockerfile",
254+
)
255+
k8s_yaml_with_ns("devnet/pyth-evm-watcher.yaml")
256+
k8s_resource(
257+
"pyth-evm-watcher",
258+
resource_deps = ["eth-devnet"],
259+
labels = ["pyth"]
260+
)
263261

264262

265263
k8s_yaml_with_ns("devnet/eth-devnet.yaml")

0 commit comments

Comments
 (0)