- docker pull mysql
- docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=beego -d mysql
- docker exec -it mysql bash
- mysql -uroot -pbeego
- CREATE DATABASE IF NOT EXISTS beeblog DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
- docker build -t beegopro-docker .
- docker run -itd --link mysql:mysql --name beegopro -p 8000:8000 -p 8080:8080 --privileged=true beegopro-docker /usr/sbin/init
- docker exec -it beegopro /bin/bash
- ./init.sh
- cd /root/beeblog/ant && yarn create umi
- npm i
- cd /root && ./cp_config.sh
- cd /root/beeblog && bee pro gen
- cd /root/beeblog/ant && npm run dev
- cd /root/beeblog && bee run