Configuration file | On‑Premise | Urbi Documentation

Configuration file

Before running DGCLI, you need to create a configuration file.

The configuration file has the following structure:

key: <License key>
log-format: <text | json>

storage:
    type: <s3 | fs>

    # S3 storage settings
    host: <Installation Artifacts Storage host name and port>
    secure: <bool>
    bucket: <Installation Artifacts Storage bucket name>
    access-key: <Installation Artifacts Storage access key>
    secret-key: <Installation Artifacts Storage secret key>

    # FS (filesystem) storage settings
    directory: <target directory on a filesystem>

docker:
    registry:
        username: <Docker Registry username>
        password: <Docker Registry password>
        server-address: <Docker Registry URL>
        image-prefix: <Additional prefix (optional)>

# For utility version 3.x
components:
    core:
        version: <version>
    api-platform:
        version: <version>
    pro:
        version: <version>
    citylens:
        version: <version>
    gis-platform:
        version: <version>

Where:

  • key: On-Premise License.

  • log-format: log format - text or json. All logs are printed into the standard output stream (stdout).

  • storage: settings for the selected storage type.

    • For an S3 compatible storage:

      • type: storage type. Must be s3.
      • host: FQDN of the S3 compatible storage endpoint.
      • secure: whether to use HTTPS for interacting with the S3 compatible storage. Default value: false.
      • bucket: bucket name for storing the installation artifacts.
      • access-key: S3 access key.
      • secret-key: S3 secret key.
    • For a file system storage:

      • type: storage type. Must be fs.

      • directory: directory in the file system to which the artifacts will be downloaded.

        To mount a directory to a Docker container, specify the directory path using the -v argument when launching DGCLI (for example, -v <path>:/dgctl-source). See the reference of DGCLI command-line arguments for more information.

        Directory path must be specified in the form that is accessible from inside the Docker container. Arguments listed in the reference of DGCLI command-line arguments are designed to work with path /dgctl-source (for pull mode) or /dgctl-target (for restore mode).

    Important note:

    Only a single storage type's settings can be present in a single configuration file. If you need to run DGCLI for different types of storage, create separate configuration files for them.

  • docker.registry: settings for accessing the Docker Registry.

    • username: username.

    • password: password.

    • server-address: registry URL.

    • image-prefix: additional prefix under which the On-Premise images will be stored.

      All On-Premise images downloaded using DGCLI have a preset prefix 2gis-on-premise. You do not need to specify it here.

    Note:

    If the selected usage scenario of DGCLI does not involve using the registry, this configuration section may be omitted.

  • components: list of components and their versions to be installed.

    • core: base component required for all other On-Premise solution components to work. Includes the license service and the API key service. See Core services releases for component version numbers.
    • api-platform: API Platform, includes APIs for working with maps, search, and navigation, Traffic API proxy, and the Platform Manager. See API Platform releases for component version numbers.
    • pro: Urbi Pro, includes Pro API and Pro UI services. See Urbi Pro releases for component version numbers.
    • citylens: CityLens, includes CityLens API, CityLens Routing API, and CityLens Routing UI services. See CityLens releases for component version numbers.
    • gis-platform: GIS Platform. See GIS Platform releases for component version numbers.

    For each component, specify its version number in the version parameter. Do not specify the version numbers of services included in the component. The list of components and links to release descriptions are provided above.