1.2.1. Installation Overview

In Introduction, the different components of Axivion Suite were outlined:
  • Dashboard server

  • Analysis agent

  • User frontend

In this section, the general approach to deploying these components is described, with a high-level focus on the decisions to be made. For detailed instructions, please follow the references provided. For simplicity, it is assumed that each component will be installed on its own (virtual) machine, but this is not a requirement.

Caution

Use a Dashboard version equal to or higher than the analysis version. Running an analysis with the same or an older version than the Dashboard is fully supported. Running an analysis with a newer version than the Dashboard may work, but is not guaranteed.

1.2.1.1. Dashboard Server

The dashboard server serves as the information source for analyzed projects via an HTTP or HTTPS-based connection. The following information will be needed to complete the installation:

  • HTTP or HTTPS port on the dashboard server host (default: HTTPS, 9443). If desired, a descriptive hostname. The entire URL will be required to configure analysis agents.

  • Optionally, a customer-specific certificate to enable HTTPS. By default, a self-signed certificate is created. See Securing Communication with other Services for details.

  • A technical user account to run the dashboard server.

  • A connection to LDAP/AD to allow users to log in with their system username/password. Alternatively, or additionally, local user accounts can be created manually on the dashboard server; see Authentication for details. Please note these requirements:

    • AD (only on Windows®): Please use a domain user account as the technical user for the dashboard server. Please create this technical user account in the same domain as the developers’ accounts who need access to the dashboard server.

    • LDAP: Additional IT information is required; please review the detailed installation instructions referenced above.

  • A technical dashboard user with an authentication token for the analysis agents that upload the analysis results to the dashboard server. See axivion_ci Authentication for details.

  • The dashboard server user account will need access to the version control systems of all installed projects. This allows the dashboard server to display the source code of the projects. The command-line tools for all version control systems must be installed on the dashboard server host, and access permissions to the projects’ source code repositories must be granted to the dashboard server’s technical user. If the information regarding the version control systems required by the projects is not readily available, this step can be postponed until the project is installed on the dashboard server.

  • Depending on the version control system, a path in the dashboard server’s file system may be necessary to create a clone/checkout/working copy of the project’s source code. For some VCSs, this initial clone/checkout must be created manually (with access permissions for the dashboard server’s technical user). This path may also need to be configured in the project configuration (see option names starting with “sourceserver” in Section VCSIntegration). Optionally, it is possible to create a user-defined environment variable that is set to this path on the dashboard server host. This environment variable can be referenced in the analysis configuration instead of the absolute path, providing more flexibility to change the path later.

  • The dashboard server can optionally send notification emails when new analysis results become available. SMTP information can be configured via the web interface.

1.2.1.2. Analysis Agent

Setting up the analysis agent for a project is largely independent of the dashboard server installation. However, some information and preparation are required for the project configuration:

  • Dashboard server URL.

  • Username and authentication token of the technical dashboard user, provided to axivion_ci by the CI/CD system.

  • The option /Results/Dashboard/database_mode set to managed_upload, so that the analysis agents upload the results to the dashboard server. The Project Wizard sets this option when you select a managed upload topology.

  • For some version control systems, the dashboard server needs additional configuration. Please see the corresponding paragraph above and any option names starting with “sourceserver” in Section VCSIntegration for details. Any value for a “sourceserver” option must be valid on the dashboard server; it does not need to have meaning on the analysis agent.

For a new project, the following information must be decided:

  • A new directory should be defined to contain the analysis configuration for Axivion Suite. This directory should be placed under version control and maintained along with the project’s source code. A typical name for this directory is axivion/.

  • A project name under which the results will appear on the dashboard server (option /Project/name). The name should be unique on the dashboard server.

  • The project root directory (option /Project/directory). This directory must be a root directory for all source code files that should be analyzed. For some types of VCS (e.g., git), this directory also needs to contain the entire working trees (not only a subtree). For projects with a single git repository, the git root directory is usually the project root directory. For example, with Subversion, it is also possible to use only a subtree of the working copy. The path to the project root directory is specified relative to the configuration directory.

To create the project configuration, proceed as follows:

  • Setup compiler profile.

  • Integrate the Axivion compiler and linker into the build system. You can test the required steps from a command shell first, or directly configure the commands with axivion_config and test the setup with axivion_ci. Note that by default, axivion_ci performs a clean build. To incrementally test the setup, be sure to set the options /Project/ci_mode.clean_before and /Project/ci_mode.clean_after to false.

  • Create a new project configuration inside the project’s configuration directory (see Project Configuration).

1.2.1.3. User Frontend

Please select and install the required frontends as explained in the Installation subsections of Section User Interface.