Upgrade Black Duck Code Sight on the same server

Follow these instructions to upgrade Black Duck Code Sight on the same server.

Log on to the server as root user always.

  1. Upgrade to Red Hat Enterprise Linux/CentOS 6.6.
    Important: Black Duck Code Sight is not supported on RHEL/CentOS 7.0. CollabNet recommends that you have Black Duck Code Sight run on a separate RHEL/CentOS 6.6 server if you upgrade to TeamForge 8.0 on new hardware that runs RHEL/CentOS 7.0.
    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 8.0 installation repository. See TeamForge installation repository configuration for Red Hat/CentOS.
  4. Install Black Duck Code Sight.
    • yum install teamforge-codesearch
  5. Copy the master site-options.conf file from the app server and modify these tokens:
    HOST_my.host.name=codesearch
    DOMAIN_my.host.name=<mycodesearchbox.domain.com>
    • If you have Black Duck Code Sight on SSL and the following external certificate tokens are not provided, the installer will generate a self-signed certificate.

      For valid SSL certificates, configure the following tokens:

      • BDCS_SSL_CERT_FILE
      • BDCS_SSL_KEY_FILE

      The ca.crt and chain files are optional -- leave out the tokens if you don't use the files.

      • BDCS_SSL_CA_CERT_FILE
      • BDCS_SSL_CHAIN_FILE
    Advanced Black Duck Code Sight configuration settings
    Note: The following are the advanced configuration tokens which can be set once during the time of installation.
    • The path where the repositories are enabled for codesearch to check out.
      BDCS_SCAN_SOURCE_DIR_ROOT=/opt/collabnet/blackduck/scan
    • The path where the codesearch software is installed.
      BDCS_INSTALL_PATH=/opt/collabnet/blackduck
    • The path where codesearch database is installed.
      BDCS_PGSQL_HOME_DIR_ROOT=/opt/collabnet/blackduck/postgres
    • The port number for the codesearch db server.
      BDCS_PGSQL_PORT=55435
    • The tomcat maximum heap memory size in megabytes.
      BDCS_TOMCAT_MX_IN_MB=1024
    • The shutdown port number for codesearch tomcat server.
      BDCS_TOMCAT_SHUTDOWN_PORT=9189
  6. Review the variables you've changed, then save the site-options.conf file.
  7. Run the installer.
    • cd /opt/collabnet/teamforge-installer/8.0.0.1
    • ./install.sh -r –I –V
  8. To start the Black Duck Code Sight service, use:
    • /etc/init.d/collabnet start tomcatcs
To install the license for Black Duck Code Sight, follow these instructions.
Note: To migrate TeamForge repositories follow these instructions.