Available in CAST Imaging ≥ 2.15.
Introduction
The datasource icon , available in Applications tile, allows you to add/update a datasource (a datasource is a CAST Storage Service/PostgreSQL instance where an application's source code data is stored) specifically for configuring the source code viewer. In previous releases of CAST Imaging (≤ 2.14), configuring the datasource for the source code viewer involved manually updating .properties files or running specific commands for Docker deployments.
Click the Datasource icon to view a list of existing datasources:
The following screen is displayed with an option to ADD DATASOURCE. In a fresh installation of CAST Imaging, datasources in the list are taken from the %APPDATA%\CAST\ImagingSystem\sourcecode\application.properties or server/sourcecode/application.properties
file - i.e. in a fresh install you will see just this:
Any new datasources added to the application.properties file will appear in the UI (when the host or the source code service is restarted), but any datasources added through the UI are not added back in to the application.properties file.
In releases ≥ 2.16, the datasources added through UI are stored in the database, so they are not lost when you restart the sourcecode service/s.
Add a new datasource
To add a datasource, click ADD DATASOURCE. The following screen is displayed, enter the following information:
Alias | This entry is used to identify the host name - you can use any name, however CAST suggests using the host name or IP address as entered in URL entry. |
---|---|
URL | This is the JDBC url for the CAST Storage Service/PostgreSQL instance where the application source code is stored. The syntax is as follows:
|
Username | For the vast majority of CAST Storage Service / PostgreSQL instances, this will be operator . |
Password | For the vast majority of CAST Storage Service / PostgreSQL instances, this will be CastAIP . |
Edit an existing datasource
To edit a datasource, click on EDIT icon (highlighted below).
Following screen is displayed with the editable fields.
Delete an existing datasource
Available in releases ≥ 2.16
To delete a datasource, click on DELETE icon (highlighted below).
Following screen is displayed with the delete option.