wormchain: contracts deploy to Tilt devnet (#2300)

This commit is contained in:
Justin Schuldt 2023-01-30 20:45:22 -06:00 committed by GitHub
parent 30d8fb4ef7
commit 15f485885b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View File

@ -763,6 +763,12 @@ if wormchain:
target = "vue-export",
)
docker_build(
ref = "wormchain-deploy",
context = "./wormchain",
dockerfile = "./wormchain/Dockerfile.deploy",
)
def build_wormchain_yaml(yaml_path, num_instances):
wormchain_yaml = read_yaml_stream(yaml_path)
@ -814,6 +820,12 @@ if wormchain:
trigger_mode = trigger_mode,
)
k8s_resource(
"wormchain-deploy",
resource_deps = ["wormchain"],
labels = ["wormchain"],
trigger_mode = trigger_mode,
)
if ibc_relayer:
docker_build(

View File

@ -92,3 +92,38 @@ spec:
path: /
periodSeconds: 5
restartPolicy: Always
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: wormchain-deploy
name: wormchain-deploy
spec:
selector:
matchLabels:
app: wormchain-deploy
replicas: 1
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: wormchain-deploy
spec:
containers:
- name: wormchain-deploy
image: wormchain-deploy
command:
- /bin/sh
- -c
- "npm run deploy-wormchain --prefix=/app/tools && touch /app/tools/success && sleep infinity"
readinessProbe:
exec:
command:
- test
- -e
- "/app/tools/success"
initialDelaySeconds: 5
periodSeconds: 5
restartPolicy: Always