-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: isolate components #81
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AquiGorka
requested review from
arsen3d,
Zorlin,
developersteve,
10d9e and
noryev
May 10, 2024 18:25
10d9e
approved these changes
May 11, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
AquiGorka
force-pushed
the
gorka/isolate-components
branch
18 times, most recently
from
May 16, 2024 18:00
6335211
to
7fdc5f6
Compare
AquiGorka
force-pushed
the
gorka/isolate-components
branch
2 times, most recently
from
May 16, 2024 18:44
3ffe18f
to
ed4b2ad
Compare
AquiGorka
force-pushed
the
gorka/isolate-components
branch
from
May 16, 2024 18:49
ed4b2ad
to
8c95bb0
Compare
This was referenced Jul 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes introduce a handful of new features. From the top:
Local setup
To run a local
Lilypad
network a local blockchain, a solver service, a resource provider service, a bacalhau node and a job creator service are required.First, start the blockchain from scratch:
./stack chain-docker-build
and./stack chain-docker-run ./path-to-local-folder-for-data
, then./stack chain-fund-admin
and finally./stack chain-boot
(fund accounts, and compile and deploy contracts). The docker container includes a handy./reset
script to go back to a clean slate (it funds the admin account so you can skip that step if reset is used).Second, start a solver service:
./stack solver
(or./stack solver-docker-build
and./stack solver-docker-run
). The output here will let us know that the solver's server address has been set in the blockchain (for local dev this ishttp://localhost:8080
). Which is required for themediator
,resource-provider
andjob-creator
services as these all connect to thesolver
via a web socket.Third, start a job creator service:
./stack job-creator
(or./stack job-creator-docker-build
and./stack job-creator-docker-run
).Fourth, start a resource provider service:
./stack resource-provider
.Fifth, start a bacalhau node:
./stack bacalhau-node
resource-provider
andbacalhau
into 1 image, as these 2 are required to setup a node to join the network.Sixth, trigger an onchain job:
./stack run-cowsay-onchain
and see how the whole flow works out.Remaining
mediator
this service is not required to run a job. I've yet to implement the Dockerfile and cmds to run this taskintegration-tests
I've yet to set the doppler cmd in place to run this.faucet
taskcloudflare tunnels
to expose the services that should be publicgithub actions
to deploy the whole infraNotes