sh ./service/install.sh
# jenkins 暂时不用
# docker pull jenkinsci/blueocean:1.25.3
记住在根文件夹启动
npm run docker:build
npm run docker:start
现在默认启动容器会运行代码 清除的办法:
ps -fe
kill -9 [pid]
启动之后
- 8000 端口可以访问到 koa 服务
- nginx 暂时没用上
- 其他解决不了
apt-get update
- 如果需要 ping 和其他网络相关
apt-get install iputils-ping
apt-get install dnsutils
- 如果需要 vim
apt-get install vim
- docker 日志相关
docker inspect -f '{{.HostConfig.LogConfig.Type}}' <containerID>
安装 git
yum -y install git
创建工作区
pwd
# /root
git clone xxx
mysql -h 127.0.0.1 -u root -p
mysql -h 127.0.0.1 -u root -p
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
FLUSH PRIVILEGES;