@saltyang
2019-09-25T17:41:42.000000Z
字数 1459
阅读 952
mbkserver
deploy
fast
Please make these steps like follow link : https://www.zybuluo.com/saltyang/note/400878
Commit these containers to new images:
- docker commit mbk_server mbkserver
- docker commit mbk_worker mbkworker
- docker commit mbk_cassandra mbkcassandra
- docker commit mbk_mysql mbkmysql
Save image to tar package:
- docker save -o mbkserver.tar mbkserver
- docker save -o mbkworker.tar mbkworker
- docker save -o mbkcassandra.tar mbkcassandra
- docker save -o mbkmysql.tar mbkmysql
- docker save -o redis.tar redis
- docker save -o rabbitmq.tar rabbitmq
Save these tar package into compose-mbk and tar compose-mbk folder:
- tar package: mbkserver.tar/mbkworker.tar/mbkcassandra.tar/mbkmysql.tar/redis.tar/rabbitmq.tar
- file: docker-compose.yml; replace_ip.sh
- folder: cassandra/data/; mysql/data/; mbk/log;
Enter into compose-mbk folder and up service:
cd compose-mbk
docker load -i mbkserver.tar....
docker-compose up -d
Relace the Ip address in container with your host Ip:
./replace_ip.sh mbk_server 192.168.1.142 your_host_ip
./replace_ip.sh mbk_worker 192.168.1.142 your_host_ip
Change Vendor storage in databases (vpc deploy option):
- login admin portal: https://your_host_ip:7856/xadmin/ change database
Note:
- Change the url of Storage credentials and Storage vendors Access URL
- Check client port :
netstat -aon|findstr "50000"
;tasklist|findstr "PID"
- Change the url :
html/scripts/login/scripts.****.js
replace the host to local server address- Chnage the client url and hint the copyright
- Change the quota of this user