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/

  • 相关阅读:
    uoj388 【UNR #3】配对树
    uoj386 【UNR #3】鸽子固定器
    回忆录
    xcode 把项目代码提交到远程SVN服务器
    IOS 点击按钮拨号
    ADO与达梦7产生的一个未知问题
    DSN 建立达梦7(DM)连接
    iOS UIControl 事件的说明(转)
    IOS开发copy,nonatomic, retain,weak,strong用法
    QT Creator 使用SVN的版本号做为编译的版本信息
  • 原文地址:https://www.cnblogs.com/oskb/p/9092260.html
Copyright © 2011-2022 走看看