1
0

Working container build

This commit is contained in:
David Boreham 2022-11-06 17:17:48 -07:00
parent 81066905d4
commit acf3877caa
3 changed files with 21 additions and 3 deletions

View File

@ -1,8 +1,23 @@
# TODO: move this into the cerc-io/mobymask-watcher repo
FROM node:16.17.1-alpine3.16
RUN apk --update --no-cache add git python3 alpine-sdk
WORKDIR /app
COPY . .
COPY assemblyscript assemblyscript
COPY watcher-ts watcher-ts
RUN apk --update --no-cache add git && yarn && yarn build
# TODO: needs branch ng-integrate-asyncify
# TODO: why are we mixing npm and yarn below?
RUN echo "Building assemblyscript" && \
cd assemblyscript && \
npm install && npm run build && yarn link
# TODO: needs branch v0.2.13
RUN echo "Building watcher-ts" && \
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
WORKDIR /app/watcher-ts/packages/mobymask-watcher

View File

@ -4,4 +4,5 @@
# See: https://stackoverflow.com/a/246128/1701505
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
docker build -t cerc/watcher-mobymask:local -f ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/mobymask-watcher
# TODO: add a mechanism to pass two repos into a container rather than the parent directory as below
docker build -t cerc/watcher-mobymask:local -f ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}

View File

@ -10,3 +10,5 @@ vulcanize/ipld-eth-beacon-db
cerc-io/laconicd
cerc-io/laconic-cns-cli
cerc-io/mobymask-watcher
cerc-io/watcher-ts
vulcanize/assemblyscript