|
1 |
| -load('ext://namespace', 'namespace_create') |
| 1 | +load('ext://namespace', 'namespace_create', 'namespace_inject') |
2 | 2 | load('ext://git_resource', 'git_checkout')
|
3 | 3 |
|
4 | 4 | git_checkout('https://github.com/wormhole-foundation/wormhole.git#main', '.wormhole/')
|
5 | 5 |
|
6 | 6 | load(".wormhole/Tiltfile", "namespace", "k8s_yaml_with_ns")
|
7 | 7 |
|
| 8 | +# Copied from .wormhole/Tiltfile, as this setup will extend the `solana-contract` image in order to inject the .so at startup |
8 | 9 | docker_build(
|
9 |
| - ref = "ntt-ci", |
10 |
| - context = ".", |
11 |
| - only = ["./ci_tests"], |
12 |
| - dockerfile = "Dockerfile", |
| 10 | + ref = "bridge-client", |
| 11 | + context = ".wormhole/", |
| 12 | + only = ["./proto", "./solana", "./clients"], |
| 13 | + dockerfile = ".wormhole/solana/Dockerfile.client", |
| 14 | + # Ignore target folders from local (non-container) development. |
| 15 | + ignore = [".wormhole/solana/*/target"], |
| 16 | +) |
| 17 | +docker_build( |
| 18 | + ref = "solana-contract", |
| 19 | + context = ".wormhole/solana", |
| 20 | + dockerfile = ".wormhole/solana/Dockerfile", |
| 21 | + target = "builder", |
| 22 | + build_args = {"BRIDGE_ADDRESS": "Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o"} |
| 23 | +) |
| 24 | +# Solana deploy |
| 25 | +docker_build( |
| 26 | + ref = "ntt-solana-contract", |
| 27 | + context = "./solana/", |
| 28 | + dockerfile = "./solana/Dockerfile", |
| 29 | +) |
| 30 | +k8s_yaml_with_ns("./solana/solana-devnet.yaml") |
| 31 | +k8s_resource( |
| 32 | + "solana-devnet", |
| 33 | + labels = ["anchor-ntt"], |
| 34 | + port_forwards = [ |
| 35 | + port_forward(8899, name = "Solana RPC [:8899]"), |
| 36 | + port_forward(8900, name = "Solana WS [:8900]"), |
| 37 | + ], |
13 | 38 | )
|
14 | 39 |
|
15 |
| -k8s_yaml_with_ns("ci.yaml") |
16 |
| - |
| 40 | +# CI tests |
| 41 | +docker_build( |
| 42 | + ref = "ntt-ci", |
| 43 | + context = "./ci_tests", |
| 44 | + dockerfile = "./ci_tests/Dockerfile", |
| 45 | +) |
| 46 | +k8s_yaml_with_ns("./ci_tests/ci.yaml") |
17 | 47 | k8s_resource(
|
18 | 48 | "ntt-ci-tests",
|
19 | 49 | labels = ["ntt"],
|
20 |
| - resource_deps = ["eth-devnet", "eth-devnet2", "guardian", "relayer-engine"], |
| 50 | + resource_deps = ["eth-devnet", "eth-devnet2", "solana-devnet", "guardian", "relayer-engine"], |
21 | 51 | )
|
0 commit comments