Fix build for yarn insanity
This commit is contained in:
parent
539d35f5dd
commit
e6859c03ad
@ -9,15 +9,19 @@ COPY assemblyscript assemblyscript
|
|||||||
COPY watcher-ts watcher-ts
|
COPY watcher-ts watcher-ts
|
||||||
|
|
||||||
# TODO: needs branch ng-integrate-asyncify
|
# 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" && \
|
RUN echo "Building assemblyscript" && \
|
||||||
cd assemblyscript && \
|
cd assemblyscript && \
|
||||||
npm install && npm run build && yarn link
|
npm install && npm run build && yarn link
|
||||||
|
|
||||||
# TODO: needs branch v0.2.13
|
# 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 && \
|
cd watcher-ts/packages/graph-node && yarn remove @vulcanize/assemblyscript && \
|
||||||
yarn add https://github.com/vulcanize/assemblyscript.git#ng-integrate-asyncify && \
|
yarn add https://github.com/vulcanize/assemblyscript.git#ng-integrate-asyncify
|
||||||
cd ../../../watcher-ts && yarn && yarn link "@vulcanize/assemblyscript" && yarn build
|
|
||||||
|
RUN echo "Building watcher-tst" && \
|
||||||
|
cd watcher-ts && yarn && yarn link "@vulcanize/assemblyscript" && yarn build
|
||||||
|
|
||||||
WORKDIR /app/watcher-ts/packages/mobymask-watcher
|
WORKDIR /app/watcher-ts/packages/mobymask-watcher
|
||||||
|
@ -2,3 +2,22 @@
|
|||||||
|
|
||||||
## Set up a Mobymask Watcher
|
## 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
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user