Install Black Duck Code Sight on a separate RHEL/CentOS 6.7 server

Black Duck Code Sight is not supported on RHEL/CentOS 7.1. Follow these instructions to install Black Duck Code Sight on a separate RHEL/CentOS 6.7 server.

  1. Install Red Hat Enterprise Linux/CentOS 6.7 and log in as root.
    Important: Don't customize your installation. Select only the default packages list.
  2. Check your basic networking setup. See Set up networking for your TeamForge server for details.
  3. Configure your TeamForge installation repository.
    • TeamForge installation repository configuration for sites with internet access
    1. Contact the CollabNet Support and download the TeamForge 8.2 installation repository package to /tmp.
    2. Install the repository package.
      • yum install -y /tmp/collabnet-teamforge-repo-8.2.0.0-1.noarch.rpm
    3. Refresh your repository cache.
      • yum clean all
    • TeamForge installation repository configuration for sites without internet access
    1. Contact the CollabNet Support to get the auxiliary installer package for TeamForge 8.2 disconnected installation and save it in /tmp.
      • Red Hat Enterprise Linux/CentOS 6.7 64 bit RPM package: CTF-Disconnected-media-8.2.0.0-4729.rhel6.x86_64.rpm
    2. Unpack the disconnected installation package.
      • rpm -Uvh <package-name>
    3. Note: If the Red Hat Enterprise Linux/CentOS installation DVD is mounted already, skip the following instructions. If not, mount the DVD.
      Mount the Red Hat Enterprise Linux/CentOS installation DVD. The DVD contains the necessary software and utilities required for installing TeamForge without internet access.

      In the following commands, replace "cdrom" with the identifier for your server's CD/DVD drive, if necessary.

      • cd /media/
      • mkdir cdrom
      • mount /dev/cdrom ./cdrom/

      If there are any spaces in the automount, unmount it first and mount it as a filepath, with no spaces.

    4. Create a yum configuration file that points to the Red Hat Enterprise Linux/CentOS installation DVD.
      • vi /etc/yum.repos.d/cdrom.repo
      Here's a sample yum configuration file.
      [RHEL-CDROM] 
      name=RHEL CDRom 			
      baseurl=file:///media/cdrom/Server/
      gpgfile=file:///media/cdrom/RPM-GPG-KEY-redhat-release 
      enabled=1
      gpgcheck=0
    5. Verify your yum configuration files.
      • yum list httpd
      • yum list apr
    6. Download the code search installation package, CodeSearch-installer-2.1.3-1.noarch.rpm from https://ctf.open.collab.net/sf/go/rel4193 and save it in the /tmp directory. To install the Black Duck Code Sight installer, run the following command.
      • cd /tmp
      • rpm -ivh CodeSearch-installer-2.1.3-1.noarch.rpm
  4. Install Black Duck Code Sight.
    • yum install teamforge-codesearch
  5. Copy the site-options.conf file from the application server to the /opt/collabnet/teamforge-installer/8.2.0.0/conf directory of the Black Duck Code Sight server.
  6. Modify the host token settings on the site-options.conf file.
    Important: If you choose not to use the application server's site-options.conf file, then don't forget to copy the value of AUTO_DATA token from the application server.
    • HOST_localhost=codesearch
    • DOMAIN_localhost=my.codesight.domain.com
    • HOST_my.app.domain.com=app database datamart etl indexer subversion cvs gerrit
  7. Save the site-options.conf file.
  8. Recreate the runtime environment.
    • cd /opt/collabnet/teamforge-installer/8.2.0.0
    • ./install.sh -r –I –V
  9. Unpack your compressed backup file and restore your Black Duck Code Sight data.

    Unpack

    • cd /tmp
    • tar xzvf 80backup.tgz

    Restore

    • cd /opt/collabnet
    • mv blackduck blackduck_bak
    • tar -zxvf /tmp/backup_dir/blackduck.tgz
  10. To start the Black Duck Code Sight service, use:
    • /etc/init.d/collabnet start tomcatcs