scp docker-compose-no-build.yml root@x.x.x.x:/root
mkdir -p /var/lib/mysql
mkdir -p /var/lib/data
mkdir -p /var/lib/rocketmq/data/namesrv/logs
mkdir -p /var/lib/rocketmq/data/namesrv/store
mkdir -p /var/lib/rocketmq/data/broker/logs
mkdir -p /var/lib/rocketmq/rocketmq/data/broker/store
mkdir -p /var/lib/rocketmq/conf
mkdir -p /var/lib/rocketmq/conf/broker.conf
with content
brokerClusterName = DefaultCluster
brokerName = broker-a
brokerId = 0
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
namesrvAddr = namesrv:9876
#brokerIP1 = 172.17.0.4
brokerIP1=broker-a
yum install docker -y
yum install docker-compose -y
systemctl start docker
docker-compose -f docker-compose-no-build.yml up -d
docker build -t beslow/goblog .
docker push beslow/goblog
docker pull beslow/goblog:latest
CONFIG_DIR=test go run main.go -db:create
CONFIG_DIR=test go run main.go -db:migrate
CONFIG_DIR=test go run main.go -db:seed
go generate test/*.go
go test ./...