svsbank-cli
v0.1.6
Published
Bukalapak services installer bank
Downloads
4
Maintainers
Readme
svsbank-cli
Services di Bukalapak udah banyak, kalau mau develop lama di installingnya. Kalau ada tools yang bisa buat ng-install services dengan mudah kan enak.
requirement!
- Git - Harus sudah install git dan setup ssh di github;
- Node - Harus sudah install node & npm (v8.11.3 & 5.6.0). Install Node with NVM is recomended: ( if node was not installed with NVM, we need to use sudo everytime -g install )
Setup git configs:
- Run
git config --global user.name "Your Name Here"
- Run
git config --global user.email "[email protected]"
Setup SSH:
- Run
ssh-keygen
- Run
gedit ~/.ssh/id_rsa.pub
- add ssh to github
how to use!
To install (add) service:
- Run
npm install -g svsbank-cli
- Run
svsbank-cli add
- Select services to be installed
note on installing:
- You may need to enter password for sudo command (might need to input multiple times)
- ...
NB: On Mothership Installer
- If asked mysql password, the answer is
rootpw
(might need to input multiple times) - ...
infos:
Install directories:
~/.svsbank_profile [for all paths setting used in the process]
~/ [for go services]
.
+-- /go/
| +-- bin/
| +-- pkg/
| +-- src/
| +-- github.com/
| +-- bukalapak/
| +-- /aleppo/[PROJECT]
| +-- /attache/[PROJECT]
| +-- /imagery-s3/[PROJECT]
~/ [for non go services]
.
+-- /svsbank/
| +-- mothership/[PROJECT]
| +-- grimoire/[PROJECT]
| +-- olympus/[PROJECT]
| +-- pogchamp/[PROJECT]
| +-- shinkansen/[PROJECT]
| +-- docker-compose.yml
| +-- .env
Automated Flows:
- check if git installed, if none (quit process)
- check & install docker on local machine (if none)
- check & install docker compose on local machine (if none)
- check & create svsbank directory (if none)
- do svsbank directory
- check & install go (if none) (run only if go service needed)
- need to prepare go workspace beforehand here (run only if go service needed)
- remove svsbank/docker-compose.yml
- run installation for selected services
- check & remove directory (svsbank/[service]) (if any)
- clone repo from github (ssh will be used, go services will be cloned to go-workspace)
- building docker image
- append docker compose & env config
- overwrite compose and env config to svsbank path
- run installation shell script (if any)
Shell Scripts Rules:
- ...
Composes Rules:
- ...
on dev pipeline (TODOs):
- Mothership mac installer
- Aleppo linux installer
- Aleppo mac installer
tested on:
- Ubuntu 16.04.5 LTS (xenial)