zoukankan      html  css  js  c++  java
  • Harbor + Https 部署

    关闭防火墙和selinux

    systemctl stop firewalld
    sed -i 's/SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux
    

    安装docker

    官方文档:https://docs.docker.com/v18.09/install/linux/docker-ce/centos/
    yum install -y yum-utils device-mapper-persistent-data lvm2
    yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    yum install docker-ce -y
    systemctl start docker
    systemctl enable docker
    

    安装docker-compose(docker编排工具)

    yum -y install epel-release
    yum install python-pip -y
    pip install docker-compose
    docker-compose version
    

    安装Harbor

    官方文档:https://github.com/goharbor/harbor
    yum install wget -y
    wget -P /usr/local/src/ https://github.com/goharbor/harbor/releases/download/v1.9.2/harbor-online-installer-v1.9.2.tgz
    cd /usr/loca/src/
    tar xvf harbor-online-installer-v1.9.2.tgz -C /usr/local/
    cd /usr/local/harbor/
    cp harbor.yml harbor.yml.bak
    ./prepare
    ./install.sh
    

    Harbor默认http协议,出于安全考虑,使用https访问

    #只列出需要修改的参数,证书为阿里云购买,可以自己生成
    hostname: harbor.keji.com
    http:
      port: 80
    
    https:
        port: 443
        certificate: /usr/local/harbor/ssl/keji.com.pem
        private_key: /usr/local/harbor/ssl/keji.com.key
    
  • 相关阅读:
    【Mybatis源码解析】Mybatis的日志系统
    20200728
    【Mybatis源码解析】-Configuration
    【日志】怎么打印日志
    【OOM】几种常见的OOM异常
    树 [虚树, 动态规划]
    最大公约数 [动态规划]
    送分题 [组合计数]
    LCM [树状数组, HH的项链]
    AT1219 歴史の研究 [回滚莫队]
  • 原文地址:https://www.cnblogs.com/yuhuLin/p/11046663.html
Copyright © 2011-2022 走看看