OCCNE YUM Repository Configuration

To perform an installation without internet access, create a local YUM mirror with the OL7 latest, epel, and addons repositories used by the "OS installation" process. Additionally a local repository is needed to hold the version of the docker-ce RPM used by the "Kubernetes installer" process. Repository files will need to be created to reference these local YUM repositories, and placed on the necessary machines (those which run the OCCNE installation Docker instances).

Pre-requisites

  1. Local YUM mirror repository for the OL7 'latest', 'epel', and 'addons' repositories. Directions here: https://www.oracle.com/technetwork/articles/servers-storage-admin/yum-repo-setup-1659167.html

  2. Local YUM repository holding the required docker-ce RPM

  3. Subscribe to following channels while creating the yum mirror from uln:

    [ol7_x86_64_UEKR5]
    [ol7_x86_64_ksplice]
    [ol7_x86_64_latest]
    [ol7_x86_64_addons]
    [ol7_x86_64_developer]
  1. Create OL7 repository mirror repo.

    Below is an example of a repository file providing the details on a mirror with the necessary repositories. This repository file would be placed on the machine that will run the OCCNE deployment containers.

    /etc/yum.repos.d/ol7-mirror.repo
    
    [local_ol7_x86_64_UEKR5]
    name=Unbreakable Enterprise Kernel Release 5 for Oracle Linux 7 (x86_64)
    baseurl=http://10.75.155.195/yum/OracleLinux/OL7/UEKR5/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    enabled=1
    proxy=_none_
      
    [local_ol7_x86_64_latest]
    name=Oracle Linux 7 Latest (x86_64)
    baseurl=http://10.75.155.195/yum/OracleLinux/OL7/latest/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    enabled=1
    proxy=_none_
      
    [local_ol7_x86_64_addons]
    name=Oracle Linux 7 Addons (x86_64)
    baseurl=http://10.75.155.195/yum/OracleLinux/OL7/addons/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    enabled=1
    proxy=_none_
      
    [local_ol7_x86_64_ksplice]
    name=Ksplice for Oracle Linux 7 (x86_64)
    baseurl=http://10.75.155.195/yum/OracleLinux/OL7/ksplice/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    enabled=1
    proxy=_none_
      
    [local_ol7_x86_64_developer]
    name=Packages for creating test and development environments for Oracle Linux 7 (x86_64)
    baseurl=http://10.75.155.195/yum/OracleLinux/OL7/developer/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    enabled=1
    proxy=_none_
      
    [local_ol7_x86_64_developer_EPEL]
    name=EPEL Packages for creating test and development environments for Oracle Linux 7 (x86_64)
    baseurl=http://10.75.155.195/yum/OracleLinux/OL7/developer/EPEL/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    enabled=1
    proxy=_none_
  2. Create Docker CE repository repo.

    Below is an example of a repository file providing the details on a repository with the necessary docker-ce package.

    /etc/yum.repos.d/docker-ce-stable.repo
    
    [local_docker-ce-stable]
    name=Docker CE Stable (x86_64)
    baseurl=http://10.75.155.195/yum/centos/7/updates/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    enabled=1

    The docker RPM's placed into the repository directory should be docker-ce-18.09.5-3.el7.x86_64, docker-ce-cli-18.09.5-3.el7.x86_64.rpm and containerd.io-1.2.4-3.1.el7.x86_64.rpm and use create repo to generate repodata for new rpm's. The RPMs can be downloaded from: https://download.docker.com/linux/centos/7/x86_64/stable and gpg-key for the rpm can be downloaded from: https://download.docker.com/linux/centos/gpg.