run.sh 826 B

123456789101112131415161718
  1. #请于 Ubuntu16.04 LTS 下运行该脚本
  2. #安装Docker
  3. curl -fsSL get.docker.com -o get-docker.sh
  4. #启用阿里云的docker镜像
  5. sh get-docker.sh --mirror Aliyun
  6. #安装vim git nload bridge-utils python-pip
  7. apt install vim git nload bridge-utils python-pip -y
  8. #根据系统版本安装docker-compose
  9. curl -L https://github.com/docker/compose/releases/download/1.20.0-rc2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
  10. #授权给docker-compose安装脚本
  11. chmod +x /usr/local/bin/docker-compose
  12. #为docker-compose安装bash补全
  13. curl -L https://raw.githubusercontent.com/docker/compose/1.19.0/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
  14. #用docker-compose运行项目
  15. docker-compose run cloudsqladminpanel-node -d
  16. #输出执行完成信息
  17. echo Service is running.