@oasislabs/parcel-worker v0.5.0-internal.staging.56725d1240cf38aaf057cca6111cf5819f0f7d33
parcel-worker
Creates the Docker image for the Parcel worker. The image is hosted privately here.
You must set your NPM_TOKEN
in the environment before building the docker
image. This allows Docker to pull the private @oasislabs/parcel-sdk
package
from npm. You can generate a read-only npm token using your credentials by
running:
npm login
npm create token --read-only
You must also delete the postinstall script in
offchain-compute/worker/package.json
before building.
You can build the Docker image by running the following command in the project root directory:
make docker-worker
Test the worker with:
docker run -p 7788:7788 oasislabs/private-data-sovereignty-offchain-worker node bin/parcel-worker \
--dispatcherAddress [dispatcher address]
Query worker Prometheus metrics at /metrics
on the maintenance port:
curl localhost:7788/metrics
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago