12345678910111213141516171819202122232425262728293031323334353637383940 |
- FROM --platform=linux/x86-64 node:14 as builder
- WORKDIR /joystream
- COPY . /joystream
- RUN yarn --frozen-lockfile
- RUN yarn workspace @joystream/types build
- RUN yarn workspace @joystream/metadata-protobuf build
- RUN yarn workspace storage-node-v2 build
- # Use these volumes to persist uploading data and to pass the keyfile.
- VOLUME ["/data", "/keystore"]
- # Required variables
- ENV WS_PROVIDER_ENDPOINT_URI=ws://not-set
- ENV COLOSSUS_PORT=3333
- ENV QUERY_NODE_ENDPOINT=http://not-set/graphql
- ENV WORKER_ID=not-set
- # - set external key file using the `/keystore` volume
- ENV ACCOUNT_KEYFILE=
- ENV ACCOUNT_PWD=
- # Optional variables
- ENV SYNC_INTERVAL=1
- ENV ELASTIC_SEARCH_ENDPOINT=
- # warn, error, debug, info
- ENV ELASTIC_LOG_LEVEL=debug
- # - overrides account key file
- ENV ACCOUNT_URI=
- # Colossus node port
- EXPOSE ${COLOSSUS_PORT}
- WORKDIR /joystream/storage-node-v2
- ENTRYPOINT yarn storage-node server --queryNodeEndpoint ${QUERY_NODE_ENDPOINT} \
- --port ${COLOSSUS_PORT} --uploads /data \
- --apiUrl ${WS_PROVIDER_ENDPOINT_URI} --sync --syncInterval=${SYNC_INTERVAL} \
- --elasticSearchHost=${ELASTIC_SEARCH_HOST} \
- --accountUri=${ACCOUNT_URI} \
- --worker ${WORKER_ID}
|