[关闭]
@saltyang 2016-06-06T13:29:35.000000Z 字数 1008 阅读 905

MBK DOCK IMPLEMENT

Dockerfile


  1. mbkcentos
    • docker run --name mbkserver -p
  2. redis
    • redis-server:
      docker run --name mbk_redis -p 6379:6379 -d redis redis-server --requirepass 111111 --appendonly yes
    • redis-client:
      docker run -it --link mbk_redis:redis --rm redis redis-cli -h redis -p 6379 -a 111111
  3. cassandra
    • cassandra-client:
      docker run -it --link mbk_cassandra:cassandra --rm cassandra cqlsh cassandra
    • create cassandra keyspaces:
      create keyspace mbackup with replication={'class': 'SimpleStrategy', 'replication_factor': 1};
  4. mysql(5.6)
    • mysql-client:
      docker run -it --link mbk_mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
    • change default charset:
      alter database mbackup character set utf-8;
  5. redis
    • docker run -it --link mbk_redis:redis --rm redis redis-cli -h redis -p 6379
  6. monitor
    • docker run --privileged=true --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/cgroup:/cgroup:ro --volume=/var/lib/docker/:/var/lib/docker:ro --publish=8484:8080 --detach=true --name=cadvisor google/cadvisor:latest
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注