Build watcher container #44

Merged
telackey merged 7 commits from dboreham/build-mobymask-watcher into main 2022-11-08 03:24:26 +00:00
2 changed files with 27 additions and 4 deletions
Showing only changes of commit e6859c03ad - Show all commits

View File

@ -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

View File

@ -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
```