relayer: fix ci

This commit is contained in:
Evan Gray 2022-10-26 19:24:46 +00:00 committed by Evan Gray
parent 3fd0631589
commit 090a8e0c74
6 changed files with 10 additions and 8 deletions

View File

@ -439,8 +439,7 @@ if spy_relayer:
docker_build(
ref = "spy-relay-image",
context = ".",
only = ["./relayer/spy_relayer"],
context = "relayer/spy_relayer",
dockerfile = "relayer/spy_relayer/Dockerfile",
live_update = []
)

View File

@ -41,7 +41,7 @@ spec:
- npm
- run
- --prefix
- /app/relayer/spy_relayer/
- /app
- tilt_listener
tty: true
readinessProbe:

View File

@ -41,7 +41,7 @@ spec:
- npm
- run
- --prefix
- /app/relayer/spy_relayer/
- /app
- tilt_relayer
ports:
- containerPort: 8083

View File

@ -41,7 +41,7 @@ spec:
- npm
- run
- --prefix
- /app/relayer/spy_relayer/
- /app
- tilt_wallet_monitor
ports:
- containerPort: 8084

View File

@ -14,7 +14,7 @@ COPY package-lock.json package-lock.json
COPY tsconfig.json tsconfig.json
COPY jestconfig.json jestconfig.json
FROM base as builder
FROM base AS builder
RUN --mount=type=cache,target=/root/.npm \
npm ci
@ -22,12 +22,15 @@ RUN --mount=type=cache,target=/root/.npm \
COPY src src
RUN npm run build && npm prune --production
FROM base as application
FROM base AS application
LABEL org.opencontainers.image.source="https://github.com/wormhole-foundation/wormhole/tree/dev.v2/relayer/spy_relayer#readme"
COPY --from=builder /app/node_modules node_modules
COPY --from=builder /app/lib lib
COPY .env.tilt.listener /app/
COPY .env.tilt.relayer /app/
COPY .env.tilt.wallet-monitor /app/
CMD [ "node", "lib/main.js" ]

View File

@ -11,7 +11,7 @@
# - We ignore scratch because it's literally the docker base image
# - We ignore solana AS (builder|ci_tests) because it's a relative reference to another FROM call
#
git ls-files | grep "Dockerfile*" | xargs grep -s "FROM" | egrep -v 'sha256|scratch|solana|aptos AS (builder|ci_tests|tests)'
git ls-files | grep "Dockerfile*" | xargs grep -s "FROM" | egrep -v 'sha256|scratch|solana|aptos|base AS (application|base|builder|ci_tests|tests)'
if [ $? -eq 0 ]; then
echo "[!] Unpinned docker files" >&2
exit 1