blockscout / blockscout-rs

Microservices for blockscout indexer
MIT License
164 stars 115 forks source link

scoutcloud: service for autodeploy #801

Open sevenzing opened 8 months ago

sevenzing commented 8 months ago

This is epic issue for developing scoutcloud - API service for autodeploy blockscout instances

Initial tasks

Improvements

sevenzing commented 6 months ago

QA related

Links

Common flow to start blockscout:

  1. get api key (for now only insert data in database):
insert into users(id, email) values (1, 'lymarenko.lev@gmail.com');
insert into auth_tokens(user_id) values (1);
insert into balance_changes(user_id, amount) values (1, 100);
select token_value from auth_tokens;
  1. create instance: POST /api/v1/instances
  2. start deployment: POST /api/v1/instances/{instance_id}/status:update with {"action": "START"}
  3. wait until status moves from PENDING to RUNNING: GET /api/v1/instances/{instance_id}/deployments/current
  4. in case of error see autodeploy private repo