From e6859c03ad8514c891e60dde4e0049ff0dda954e Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 7 Nov 2022 20:23:52 -0700 Subject: [PATCH] Fix build for yarn insanity --- .../cerc-watcher-mobymask/Dockerfile | 12 ++++++++---- stacks/mobymask/README.md | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/container-build/cerc-watcher-mobymask/Dockerfile b/container-build/cerc-watcher-mobymask/Dockerfile index 48cf1245..b27c6f96 100644 --- a/container-build/cerc-watcher-mobymask/Dockerfile +++ b/container-build/cerc-watcher-mobymask/Dockerfile @@ -9,15 +9,19 @@ COPY assemblyscript assemblyscript COPY watcher-ts watcher-ts # TODO: needs branch ng-integrate-asyncify -# TODO: why are we mixing npm and yarn below? +# We use a mixture of npm and yarn below because the upstream +# project checked in an npm package-log.json file RUN echo "Building assemblyscript" && \ cd assemblyscript && \ npm install && npm run build && yarn link # TODO: needs branch v0.2.13 -RUN echo "Building watcher-ts" && \ +# The shenanigans below is due to yarn and lerna being a dumpster-fire +RUN echo "Linking watcher-ts to local assemblyscript" && \ cd watcher-ts/packages/graph-node && yarn remove @vulcanize/assemblyscript && \ - yarn add https://github.com/vulcanize/assemblyscript.git#ng-integrate-asyncify && \ - cd ../../../watcher-ts && yarn && yarn link "@vulcanize/assemblyscript" && yarn build + yarn add https://github.com/vulcanize/assemblyscript.git#ng-integrate-asyncify + +RUN echo "Building watcher-tst" && \ + cd watcher-ts && yarn && yarn link "@vulcanize/assemblyscript" && yarn build WORKDIR /app/watcher-ts/packages/mobymask-watcher diff --git a/stacks/mobymask/README.md b/stacks/mobymask/README.md index 542064d6..b3263d88 100644 --- a/stacks/mobymask/README.md +++ b/stacks/mobymask/README.md @@ -2,3 +2,22 @@ ## Set up a Mobymask Watcher +## Clone required repositories +``` +$ laconic-so setup-repositories +``` +Checkout required branches: +``` +$ cd ~/cerc/assemblyscript +$ git checkout ng-integrate-asyncify +$ cd ~/cerc/watcher-ts +$ git checkout v0.2.13 +``` +## Build the watcher container +``` +$ laconic-sh build-containers --include cerc/watcher-mobymask +``` +## Deploy the stack +``` +$ laconic-sh deploy-system --include watcher-mobymask +``` \ No newline at end of file