Managing General Repository Settings

To add a repository, proceed as follows:

  1. In the Repositories section, click the Design Repositories or Deployment Repositories tab as needed.
  2. Click the Add Design Repository or Add Deployment Repository button in the top-right corner.

    A new repository form opens with default Git settings pre-filled.

  3. In the Name field, enter the repository name to be displayed on the Projects page.
  4. In the Type field, select the connection type.

    Type Description
    Git The repository is located on a local or remote machine. See Managing Git Repository Settings for Git-specific parameters.
    Database JDBC The repository is located in a local or remote database accessed via a JDBC URL. Supported databases include MySQL, MariaDB, PostgreSQL, MS SQL, and Oracle.
    For more information on supported versions, see https://openl-tablets.org/supported-platforms.
    Database JNDI The repository is located in a database accessed via a JNDI data source.
    AWS S3 The repository is located in Amazon Simple Storage Service (AWS S3).
    A “bucket” is a logical unit of storage in AWS S3 and is globally unique.
    Choose a region for storage to reduce latency and costs. An Access key and a Secret key are required to access storage.
    If left empty, the system retrieves credentials from one of the known locations as described in AWS Documentation. Best Practices for Managing AWS Access Keys.
    The Listener period is the interval in which to check for repository changes, in seconds.
    Azure Blob Storage The repository is located in Microsoft Azure Blob Storage.

    For more information on repository settings, see OpenL Tablets Rule Services Usage and Customization Guide > Configuring a Data Source.

    For AWS S3, the SSE algorithm field sets the server-side encryption of the stored objects, and the KMS key ID field, which is available for the algorithms that use AWS KMS, chooses the key. For the values and the permissions of the key, see OpenL Tablets Installation Guide > Server-Side Encryption.

  5. Provide the URL value.

    The following table provides examples of JDBC URL values for different databases.

    Database URL value sample
    MySQL, MariaDB jdbc:mysql://localhost:3306/prodRepository, jdbc:mariadb://localhost:3306/ prodRepository (for MariaDB driver)
    PostgreSQL jdbc:postgresql://localhost:5432/ prodRepository
    MS SQL jdbc:sqlserver://localhost:1433;databaseName=prodRepository;integratedSecurity=false
    Oracle jdbc:oracle:thin:@localhost:1521:prodRepository
  6. For Database JDBC and Database JNDI types, to set up a secure connection, select the Secure connection check box and fill in the Login and Password fields.

    For more information on repository security, see OpenL Tablets Installation Guide > Encrypting Passwords.

    Configuring deployment repository settings

    Connection to a local deployment repository is configured by default.

  7. For Deployment Repositories, select the Deployment branch option:

    Option Description
    Any branch Projects can be deployed to any branch.
    Main branch only Projects can only be deployed to the repository’s default branch.
  8. When finished, click Apply Changes to save the settings.

    OpenL Studio checks the settings of a remote Git repository before it saves them: the Git server must let the user write to the repository, not only read it. A wrong password or a user who may only read is reported, even for a repository anyone may read. When the Git server refuses a change later, such as a project created, saved or deleted by a user who lost the access, the message tells the reason the server gave, and that the branch was changed on the server meanwhile when another OpenL Studio pushed first.

When the settings of a design repository move it to another place, such as another URL, local path, folder of the projects, AWS S3 bucket or repository type, the locks users hold on its projects are released: they were taken on the projects of the old place, and a project created in the new place under the same name can be edited at once.

To delete a repository, click the × button on the repository’s tab and confirm the deletion. The locks on its projects are released.

When an environment variable or a Java system property sets the list of the repositories of a tab, such as DESIGN-REPOSITORY-CONFIGS, the repositories of that tab can be neither added nor deleted: the Add Design Repository or Add Deployment Repository button is unavailable, and the tabs of the repositories have no × button. A setting the environment sets, directly or through $ref, is shown read-only. For more information, see Configuration.

To enable storing large files in a Git repository, Git Large File Support (LFS) can be used.

  • To enable the Git repository use LFS before it is cloned by OpenL Studio, perform the necessary configuration as described in https://git-lfs.github.com/.
  • If the Git repository is already cloned by OpenL Studio, to enable using Git LFS, proceed as follows:
    1. Close all projects in the workspace.
    2. Delete all deployment configuration settings.
    3. Stop OpenL Studio.
    4. Drop the local folder with the Git repository to the OpenL Studio home directory.
    5. Start OpenL Studio. OpenL Studio will re-clone the directory.
    6. Recreate the required deployment configuration settings that were deleted previously.