Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

OOM ONAP offline installer

...


...

Self-Installer Package Build Guide

...


...

(Community Edition)

...

 

Image Added

This document is describing procedure for generating SI (self-installer) archive based on source code.

It's supposed to be triggered on server with internet connectivity and will download all artifacts required for stable/beijing deployment based on our static lists.
Procedure was completely tested on RHEL 7.4 as it's our target platform, however with small adaptations it should be applicable also for other platforms.


Part 1. Preparations
Part 2. Download artifacts for offline installer
Part 3. Populate local nexus
Part 4. Creating self-install archive:


Anchor
_nw5r7pa7d1yk
_nw5r7pa7d1yk

Version Control

...

Anchor
_k3napp3jkwvq
_k3napp3jkwvq
Part 1. Preparations


We assume that procedure is executed on:

...


More-over following packages has to be installed

  • screen expect nodejs git wget createrepo python2-pip patch
  • docker (exact version, from centos repo)
  • source code of offline installer

...

  1. Register server (rhel only)

    Code Block
     subscription-manager register --username <rhel licence name> --password <password> --auto-attach



  2. enable EPEL

    Code Block
    yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    # enable rhel-7-server-e4s-optional-rpms in /etc/yum.repos.d/redhat.repo
    # to get following rpm available (icewm dependency)
    # fribidi x86_64 0.19.4-6.el7 rhel-7-server-e4s-optional-rpms 



  3. install following packages

    Code Block
    yum install -y screen expect nodejs git wget createrepo python2-pip patch yum-utils



  4. install docker

    Code Block
    curl https://releases.rancher.com/install-docker/17.03.sh | sh



  5. install docker alternative - both rhel and centos:

    Code Block
    yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    yum install docker-ce-17.03.3.ce-1.el7 docker-ce-selinux-17.03.3.ce-1.el7



  6. start docker

    Code Block
    systemctl start docker



...


Anchor
_9i96cnscrdvw
_9i96cnscrdvw


Part 2. Download artifacts for offline installer

All artifacts should be downloaded by running following script

...

Anchor
_a701bwfyn06x
_a701bwfyn06x
Part 3. Populate local nexus

Prereq:

  • Cleaned repos (ensure that we use our packages from onap.repo only)

    Code Block
    mkdir /etc/yum.repos.d-backup && mv /etc/yum.repos.d/*.repo /etc/yum.repos.d-backup/

...

Anchor
_cm1dw6eiwtv9
_cm1dw6eiwtv9

Part 4. Creating self-install archive:



Note:  as nexus_data is mounted folder into nexus, we recommend to stop nexus first before launching SI archive create script

...