转载

jenkins + docker

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/mr_raptor/article/details/85279885

jenkins + docker

Centos 安装Docker

https://www.cnblogs.com/nieqibest/p/9846655.html

sudo yum install -y yum-utils /
  device-mapper-persistent-data /
  lvm2
$ sudo yum-config-manager /
    --add-repo /
    https://download.docker.com/linux/centos/docker-ce.repo
$ sudo yum install docker-ce
curl -L https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-`uname -s`-`uname -m` -o /usr/bin/docker-compose
chmod +x /usr/bin/docker-compose

jenkins可以自动部署

vim /etc/sudoers

56 #Defaults    requiretty

57 Defaults:apache !requiretty

109 # %wheel    ALL=(ALL)   NOPASSWD: ALL

110 apache ALL= NOPASSWD: /usr/bin/docker-compose

原文  https://blog.csdn.net/mr_raptor/article/details/85279885
正文到此结束
Loading...