Add pyth-evm-watcher to tilt (#238)
This commit is contained in:
parent
1f785d5a7f
commit
e76181ace6
13
Tiltfile
13
Tiltfile
|
@ -254,6 +254,19 @@ if pyth:
|
|||
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")
|
||||
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pyth-evm-watcher
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: pyth-evm-watcher
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: pyth-evm-watcher
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
containers:
|
||||
- name: pyth-evm-watcher
|
||||
image: pyth-evm-watcher
|
||||
resources:
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
env:
|
||||
- name: WS_ENDPOINT
|
||||
value: 'ws://eth-devnet:8545'
|
||||
- name: PYTH_CONTRACT
|
||||
value: '0xDb56f2e9369E0D7bD191099125a3f6C370F8ed15'
|
|
@ -0,0 +1,2 @@
|
|||
WS_ENDPOINT="ws://localhost:8545"
|
||||
PYTH_CONTRACT="0xDb56f2e9369E0D7bD191099125a3f6C370F8ed15"
|
|
@ -0,0 +1,10 @@
|
|||
FROM node:16-alpine@sha256:72a490e7ed8aed68e16b8dc8f37b5bcc35c5b5c56ee3256effcdee63e2546f93
|
||||
|
||||
RUN addgroup -S pyth -g 10001 && adduser -S pyth -G pyth -u 10001
|
||||
USER pyth
|
||||
|
||||
WORKDIR /usr/src/evm-watcher
|
||||
COPY --chown=pyth:pyth . .
|
||||
RUN npm ci && npm run build && npm cache clean --force
|
||||
|
||||
CMD [ "npm", "run", "start" ]
|
Loading…
Reference in New Issue