What is the ZIP file format?
From release 2.0 onwards, CAST will deliver a ZIP file for each CAST Dashboard, alongside the traditional WAR file that has always been delivered. The ZIP file is a new method of deploying the CAST Dashboards based on Spring Boot and does not require a web application server (the application server is embedded in the ZIP itself). The aim of the ZIP file releases is to simplify and speed up the deployment of the CAST Dashboards. The deployment and configuration of the Spring Boot based dashboards differs slightly to the steps required for traditional WAR files (see Engineering Dashboard deployment using WAR file).
How many Engineering Dashboards do I need?
CAST highly recommends that you install one Engineering Dashboard and consolidate all your CAST Dashboard Services schemas into this.
Standalone or combined ZIP file?
CAST provides the Engineering Dashboard in two ZIP files as follows:
ZIP file name
|com.castsoftware.aip.dashboard.engineering.<version>.zip||Traditional "standalone" ZIP file containing only the Engineering Dashboard. This document describes the installation using this ZIP file.|
|com.castsoftware.aip.dashboard.<version>.zip||"Combined" ZIP file containing both the Engineering Dashboard and the Health Dashboard.|
You are free to use whichever ZIP file you prefer to deploy the Engineering Dashboard (the requirements and prerequisites are identical), however if you are using both the Health Dashboard and Engineering Dashboard, to fulfil (for example) a "risk and quality" use case, then it would make sense to take advantage of the combined com.castsoftware.aip.dashboard.<version>.zip file and deploy both dashboards from the same ZIP file. If you do so, please note the following about using the "combined" ZIP file:
- There is no need to specifically configure a URL for your Engineering Dashboard drilldown (via the "microscope" icon) from the Health Dashboard - when using the combined "ZIP" file, access to the Engineering Dashboard from the Health Dashboard is pre-configured.
- Security access and authentication is common to both Dashboards. Therefore, if you setup Active Directory authentication, then this must be used to access both Dashboards - you cannot use "Default Authentication" for one Dashboard and "Active Directory" for the other.
- Role configuration is common to both Dashboards. Therefore "UserA" that has been granted the "admin" role, will have the "admin" role in both Dashboards.
- Data authorization is common to both Dashboards. Therefore if you authorize "UserA" to view Application "B" only via the authorizations.xml file, then this is true for both Dashboards. Note that authorizations based only on Tags and Categories created for the Health Dashboard (Tags and Categories are a feature that is not available in the Engineering Dashboard) WILL be applied in the Engineering Dashboard when using the combined war file.
- Group configuration is common to both Dashboards, regardless of the authentication mode in use. Therefore if you authorize "GroupD" to view Application "E" only, then this is true for both Dashboards.
- On login, the user will be presented with a choice of Dashboard as shown below (Image 1) in a "Welcome" page. Clicking Access will take the user to the custom login screen for the chosen Dashboard where a "Return to welcome page" URL is available if the user wishes to login to the other Dashboard (Image 2):
Image 1 - Welcome page
Image 2 - Return to welcome page URL
Pre-installation check list
Before beginning the installation process, please ensure that you have carried out all of the following tasks and that the following requirements have been met:
Ensure you have read all Release Notes accompanying CAST products for any last-minute information.
|Decide where the Engineering Dashboard will be installed and run from.|
Ensure that your user login on the target machine has sufficient user privileges to install applications.
Make sure you have the required .ZIP file ready for deployment.
The installation process is divided into various steps:
|Step 1||Unpack the ZIP file|
Configure the connection parameters
|Step 3||Install the license key|
|Step 4||Start the dashboard and test connection|
|Step 5||Configure user authentication|
|Step 6||Configure roles|
|Step 7||Generate snapshot data for display|
|Step 8||Configure data authorization|
Step 1 - Unpack the ZIP file
Unpack the ZIP file on the server. You can run the dashboard directly from wherever you unpack the ZIP file, however, you may want to move the unpacked files to a more appropriate location.
Step 2 - Configure the connection parameters
When the ZIP has been unpacked you now need to configure the application.properties file to tell the web application on which CAST Storage Service/PostgreSQL instance the Dashboard schemas are stored. This file is located here:
Locate the following section in the file:
If all your Dashboard schemas are located on one single CAST Storage Service/PostgreSQL instance then you need to modify the
password entries to match your target CAST Storage Service/PostgreSQL, for example:
If your Dashboard schemas are located on multiple CAST Storage Services/PostgreSQL instances, you need to add in the additional servers as shown in the example below:
- Ensure that you modify the
resourceentries to match your target CAST Storage Service/PostgreSQL. In particular, the
resourceentry must be unique within the application.properties file.
must also be incremented for additional CAST Storage Service/PostgreSQL instances, for example, use
Save the file before proceeding.
minimumIdle and maximumPoolSize
The following options are used to govern the connections from the web application to the target CAST Storage Service/PostgreSQL instance:
CAST recommends using the default options unless you are experiencing performance issues. The options are used as follows:
The minimum number of connections that should be kept in the pool at all times (even if there is no traffic). Default value is 10. Idle connections are checked periodically.
|maximumPoolSize||The maximum number of active connections that can be allocated from this pool at the same time. The default value is 20.|
You now need to configure the domains.properties file which provides a link between the CAST Storage Services/PostgreSQL instances defined in the application.properties file and the Dashboard schemas containing the relevant snapshot data. This file is located here:
This file is delivered empty as shown below:
For each Dashboard schema that you need to display in the CAST Engineering Dashboard, add one line to the file ensuring that there are no empty lines:
|AED1||This is known as the "domain" and this must be unique in the domains.properties file. Therefore for each Dashboard schema you need to display in the CAST Engineering Dashboard, you need to assign one unique domain. You can use any domain name notation you want, however, CAST highly recommends incrementing the number, i.e. AED1, AED2, AED3 etc.|
|Resource1||This entry refers to the CAST Storage Service/PostgreSQL instance as defined in the application.properties file.|
|[Central Schema1]||This entry refers to the Dashboard schema containing the relevant Application data.|
For example, for one single Dashboard schema called "MEUDON_CENTRAL" stored in the CAST Storage Service/PostgreSQL instance defined in Resource1 in the application.properties file, add the following:
For multiple Dashboard schemas where all schemas are located in the same CAST Storage Service/PostgreSQL instance defined in Resource1 in the application.properties, add the following:
For multiple Dashboard schemas where the schemas are located on different CAST Storage Services/PostgreSQL instances (Resource1 and Resource2) as defined in the application.properties file, add the following:
Save the file before proceeding.
Step 3 - Install the license key
As explained in Dashboard Service license key configuration, when you want to access a Dashboard schema using the CAST RestAPI (i.e. via the Engineering Dashboard, or via the CAST Report Generator), a special license key is required. This license key grants specific access to one or multiple Dashboard schemas for the web application in which it is installed (i.e. the Engineering Dashboard or the CAST RestAPI).
You must therefore install the license key and, if you are using a restricted license key, define data access authorization. These two steps are explained in Dashboard Service license key configuration in the sections How do I install a license key? and How to authorize users when using a RESTRICTED license key.
Step 4 - Start the dashboard and test connection
To start the dashboard, run the following file:
By default the dashboard is configured to run on port 8080. Use the following URL - where <server_name> is equal to the host name of the current server to access the dashboard. If you are testing on the server itself, you can use
You should see the login page as follows - this indicates that the initial setup was successful:
- Error messages are documented in Error Messages.
- See Modify the user access port for 2.x ZIP deployments for more information about changing the default port 8080.
Step 5 - Configure user authentication
This step involves configuring how your users will authenticate with the CAST Engineering Dashboard. Most organizations opt for LDAP/Active Directory integration so that users can use their corporate username/password to access the resources they need. The Engineering Dashboard also has a built in username/password authentication mechanism which is enabled "out of the box". See User authentication.
Step 6 - Configure roles
This step involves configuring roles for users and groups that are accessing the CAST Engineering Dashboard. See User roles.
Step 7 - Generate snapshot data for display
Before your users can "consume" data via the CAST Engineering Dashboard, you need to generate snapshot data.
Step 8 - Configure data authorization
An Authorization defines permission to access and "consume the data" in a specific Application or group of Applications via the CAST Engineering Dashboard. If permission is not granted, or a "restriction" is used, then any information related to this Application will be not accessible: application properties such as name, technologies or grades and measures, etc. Therefore, an Authorization must be defined before a user/group of users can access a specific application. See Data authorization.
Advanced configuration specific to the CAST Engineering Dashboard:
Additional advanced configuration options: