Bukalapak services installer bank
npm install svsbank-cliSetup git configs:
- Run git config --global user.name "Your Name Here"
- Run git config --global user.email "your-github-email@example.com"
Setup SSH:
- Run ssh-keygen
- Run gedit ~/.ssh/id_rsa.pub
- add ssh to github
To install (add) service:
- Run npm install -g svsbank-cli
- Run svsbank-cli add
- Select services to be installed
NB: On Mothership Installer
- If asked mysql password, the answer is rootpw (might need to input multiple times)
- ...
bash~/.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:
1. check if git installed, if none (quit process)
2. check & install docker on local machine (if none)
3. check & install docker compose on local machine (if none)
4. check & create svsbank directory (if none)
1. do svsbank directory
2. check & install go (if none) (run only if go service needed)
3. need to prepare go workspace beforehand here (run only if go service needed)
5. remove svsbank/docker-compose.yml
6. run installation for selected services
1. check & remove directory (svsbank/[service]) (if any)
2. clone repo from github (ssh will be used, go services will be cloned to go-workspace)
3. building docker image
4. append docker compose & env config
5. overwrite compose and env config to svsbank path
6. run installation shell script (if any)
Shell Scripts Rules:
- ...
Composes Rules:
- ...