Sign inSign up

protolambda/muskoka_worker

By protolambda

•Updated almost 7 years ago

Image
0

236

protolambda/muskoka_worker repository overview

⁠muskoka-worker

Wrapper around Eth2 consensus state machines, to run state transitions on demand, and upload results to a shared service. This can then be triggered, diffed between clients, and stay tracked on a website.

For local testing, just use an user-account to authenticate the pubsub subscription: gcloud auth login and export GCP_PROJECT=my_project_id to run.

To run with a service account:

  • GOOGLE_APPLICATION_CREDENTIALS=muskoka-testing.key.json: path to a service key for testing (.key.json is git-ignored). Required permissions: Pub/Sub subscriber, to the specified subscription id (sub-id).

Options:

typeoption namedefaultdescription
strinputs-bucketmuskoka-transitionsthe name of the storage bucket to download input data from
strspec-versionv0.8.3the spec-version to target
strspec-configminimalthe config name to target
strcli-cmdzcli transition blockschange the cli cmd to run transitions with
strgcp-project-idmuskokachange the google cloud project to connect with pubsub to
strworker-idpocthe name of the worker. Pubsub subscription id is formatted as: <spec version>~<spec config>~<client name>~<worker id> to get a unique subscription name
strclient-nameeth2teamthe client name; 'zrnt', 'lighthouse', etc.
strresults-bucketresults-eth2teamthe name of the bucket to upload the results to
strclient-versionv0.1.2_1a2b3c4the client version, and git commit hash start. In this order, separated by an underscore.
boolcleanup-tmptrueif the temporary files should be removed after uploading the results of a transition

Also see muskoka-server⁠.

⁠Dockerfile

This code is build in a docker image, for other docker images to extend or extract the executable (muskoka_worker) from. Dockerhub: protolambda/muskoka_worker⁠

⁠License

MIT, see LICENSE⁠ file.

Tag summary

Content type

Image

Digest

Size

208.9 MB

Last updated

almost 7 years ago

docker pull protolambda/muskoka_worker