From 90d92c3e1581aba18fc11c6caddb388474ef3246 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 2 Apr 2024 22:20:02 -0500 Subject: [PATCH] Fix Docker build --- .../data/container-build/cerc-go-nitro/Dockerfile | 8 +++++--- stack_orchestrator/data/stacks/go-nitro-auth/stack.yml | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/stack_orchestrator/data/container-build/cerc-go-nitro/Dockerfile b/stack_orchestrator/data/container-build/cerc-go-nitro/Dockerfile index e33da5bc..9c89c383 100644 --- a/stack_orchestrator/data/container-build/cerc-go-nitro/Dockerfile +++ b/stack_orchestrator/data/container-build/cerc-go-nitro/Dockerfile @@ -18,10 +18,12 @@ RUN find . -name 'dist' | xargs -n1 rm -rf RUN yarn WORKDIR /app/packages/nitro-gui RUN VITE_RPC_HOST=CERC_RUNTIME_ENV_RPC_HOST yarn build -WORKDIR /app/packages/nitro-auth-gui -RUN VITE_RPC_URL=CERC_RUNTIME_ENV_RPC_URL VITE_TARGET_URL=CERC_RUNTIME_ENV_TARGET_URL yarn build +RUN if [ -d /app/packages/nitro-auth-gui ]; then \ + cd /app/packages/nitro-auth-gui && \ + VITE_RPC_URL=CERC_RUNTIME_ENV_RPC_URL VITE_TARGET_URL=CERC_RUNTIME_ENV_TARGET_URL yarn build; \ + fi WORKDIR /app/packages/nitro-auth -RUN yarn build +RUN if [ -d /app/packages/nitro-auth ]; then cd /app/packages/nitro-auth && yarn build; fi FROM node:18-bullseye-slim RUN apt-get update diff --git a/stack_orchestrator/data/stacks/go-nitro-auth/stack.yml b/stack_orchestrator/data/stacks/go-nitro-auth/stack.yml index 56c402ea..42b10950 100644 --- a/stack_orchestrator/data/stacks/go-nitro-auth/stack.yml +++ b/stack_orchestrator/data/stacks/go-nitro-auth/stack.yml @@ -2,7 +2,9 @@ version: "1.0" name: go-nitro-auth description: "Stack to demonstrate payments between various services" repos: - # nitro repo + # for nitro-contracts + - github.com/cerc-io/ts-nitro@v0.1.15 + # for go-nitro and nitro-rpc-client - github.com/cerc-io/go-nitro@telackey/update containers: # nitro