masa-finance / masa-bittensor

Bittensor Subnet Config
https://masa.ai
MIT License
0 stars 0 forks source link

ci: Container images release #109

Closed mudler closed 2 days ago

mudler commented 1 week ago

As part of the release process there should be some consumable artifacts.

Can we have for instance a container image that users can pull?

Have a github action that deploys the opentensor subtensor and runs the initial create subnet:

This could replace the running "devnet" that have deployed based on / triggered by updates to the main branch of our fork of opentensor/subtensor, so that we control when we redeploy updates to main on our own public devnet / testnet chain This should optionally allow for updates to our private devnet code without necessarily starting with a fresh chain. This may involve a more volatile private devnet where we run branches other than main when testing changes to the subtensor codebase, and should also optionally allow retaining or starting from a fresh chain database. Github action could also provision required infra to run subtensor / devnet on, or that could be handled separately (as with oracle nodes vs. oracle app currently).

Acceptance criteria

5u6r054 commented 2 days ago

Now there is a GHA workflow that creates 5 public images under docker compose that anyone can pull. There is a Makefile, and a readme.md has been updated, so now you can clone the repo and do make up and it will pull the latest 5 images (subtensor, subnet, validator, miner, protocol) and start them all. make logs will show the output. The result is you can go to localhost:8000/docs and see docs of the validator API, you can call them on port 8080. A masa protocol node is up on port 8081 and connected to masa testnet, and responds to requests from the miner via the validator.