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.
-
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.
-
Check your basic networking setup.
See Set up networking for your TeamForge server for details.
-
Configure your TeamForge installation repository.
- TeamForge installation repository configuration for sites with internet access
-
Contact the CollabNet Support and download the TeamForge
16.3 installation repository package to /tmp.
-
Install the repository package.
- yum install -y /tmp/collabnet-teamforge-repo-16.3-1.noarch.rpm
-
Refresh your repository cache.
- TeamForge installation repository configuration for sites without internet
access
-
Contact the CollabNet Support to get the auxiliary installer package for TeamForge
16.3 disconnected installation and save it in /tmp.
- Red Hat Enterprise Linux/CentOS 6.7 64 bit RPM package:
CTF-Disconnected-media-16.3.924-7294.rhel6.x86_64.rpm
-
Unpack the disconnected installation package.
-
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.
-
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
-
Verify your yum configuration files.
- yum list httpd
- yum list apr
-
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
-
Install Black Duck Code Sight.
- yum install
teamforge-codesearch
-
Copy the site-options.conf file from the application server to the
/opt/collabnet/teamforge-installer/16.3/conf directory
of the Black Duck Code Sight server.
-
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
-
Save the site-options.conf file.
-
Recreate the runtime environment.
- cd
/opt/collabnet/teamforge-installer/16.3
-
./install.sh -r –I –V
-
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
-
To start the Black Duck Code Sight service, use:
- /etc/init.d/collabnet
start tomcatcs