zoukankan      html  css  js  c++  java
  • Installing Jenkins to Centos Docker

    1.Install Docker CE to Centos7

    [root@zoo1 ~]# yum install -y yum-utils   device-mapper-persistent-data   lvm2
    [root@zoo1 ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    Loaded plugins: fastestmirror
    adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
    grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
    repo saved to /etc/yum.repos.d/docker-ce.repo
    [root@zoo1 ~]# yum repolist
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirrors.tuna.tsinghua.edu.cn
     * extras: mirrors.tuna.tsinghua.edu.cn
     * updates: mirrors.tuna.tsinghua.edu.cn
    docker-ce-stable                                                                                                                                                                           | 2.9 kB  00:00:00     
    docker-ce-stable/x86_64/primary_db                                                                                                                                                         |  13 kB  00:00:01     
    repo id                                                                                              repo name                                                                                              status
    base/7/x86_64                                                                                        CentOS-7 - Base                                                                                        9,911
    docker-ce-stable/x86_64                                                                              Docker CE Stable - x86_64                                                                                 15
    extras/7/x86_64                                                                                      CentOS-7 - Extras                                                                                        303
    updates/7/x86_64                                                                                     CentOS-7 - Updates                                                                                       632
    repolist: 10,861
    [root@zoo1 ~]# 
    [root@zoo1 ~]# yum list |grep docker-ce
    docker-ce.x86_64                            18.03.1.ce-1.el7.centos    docker-ce-stable
    docker-ce-selinux.noarch                    17.03.2.ce-1.el7.centos    docker-ce-stable
    [root@zoo1 ~]# yum -y install docker-ce
    [root@zoo1 ~]# systemctl start docker
    			
    

    2. Downloading and running Jenkins in Docker

    A docker image to give BlueOcean a try

    This image has a tag for every release of blue ocean, to run the latest, ensure you run docker pull jenkinsci/blueocean from time to time.

    Refer:

    https://hub.docker.com/r/jenkinsci/blueocean/

    https://jenkins.io/doc/book/installing/#installing-docker

    https://docs.docker.com/install/linux/docker-ce/centos/

  • 相关阅读:
    彻底弄懂CSS盒子模式
    什么是 MDAC、 DA SDK、 ODBC、 OLEDB、 ADO、 RDS, 和 ADO / MD
    多线程编程之一——问题提出
    DECLARE_HANDLE
    15.3简单多线程示例
    为什么有的时候Win32 Console Application新创建的子线程得不到运行
    多线程CreateThread函数的用法及注意事项
    多线程编程之二——MFC中的多线程开发
    listbox 使用笔记
    Command 对象
  • 原文地址:https://www.cnblogs.com/oskb/p/9092260.html
Copyright © 2011-2022 走看看