matrixorigin / mo_ctl_standalone

mo_ctl tool for standalone matrixone
Apache License 2.0
2 stars 1 forks source link

[Feature Request]: Implement function 'deploy' #17

Closed aronchanisme closed 1 year ago

aronchanisme commented 1 year ago

Is there an existing issue for the feature request?

Feature Description

Implement function 'deploy' to deploy a standalone mo on current machine.
Usage         : mo_ctl deploy [mo_version] [force] # deploy mo onto the path configured
  [mo_version]: optional, specify an mo version to deploy
  [force]     : optional, if specified will delete all content under MO_PATH and deploy from beginning
  e.g.        : mo_ctl deploy             # default, same as mo_ctl deploy 0.8.0
              : mo_ctl deploy main        # deploy development latest version
              : mo_ctl deploy d29764a     # deploy development version d29764a
              : mo_ctl deploy 0.8.0       # deploy stable verson 0.8.0
              : mo_ctl deploy force       # delete all under MO_PATH and deploy verson 0.8.0
              : mo_ctl deploy 0.8.0 force # delete all under MO_PATH and deploy stable verson 0.8.0 from beginning

Feature Implementation

Steps as below,
1. run `precheck`, and if any pre-requisite fails, exit 1
2. run `git clone`, to download source code from github or backup address
3. run `make build` and `make build modump` to build `mo-service` and `mo-dump`

Additional information

none
aronchanisme commented 1 year ago

feature implemented