winery

Support of multiple repositories

Technical Story: Pull Request 124

Context and Problem Statement

To help developers obtain TOSCA elements in a more practical way, an approach to supporting multiple repositories distributed across different servers is presented here. The result provides the ability to define a set of URLs and load them into the current winery-repository.

Considered Options

Decision Outcome

Option 2 was chosen to manage each repository individually. This makes it possible to use existing version control systems in the individual repositories.

The repositories are structured as follows. Repository Structure

Positive Consequences

Negative consequences

Usage

  1. Make sure the winery-repository is empty (or move existing files into a new folder called “workspace”)
  2. Create a repositories.json in the root directory of the repository
    1. Create a new object inside the json file
    2. For each repository you want to add
      1. Use the URL of the repository as a String element
      2. Use the Branch name as a value for the element (also as String)
      3. Separate each element with a comma
    3. Example:
      {
         "https://github.com/OpenTOSCA/tosca-definitions-public" : "master",
         "https://github.com/winery/test-repository" : "master"
      }
    
  3. Start Server and UI

License

Copyright (c) 2019 Contributors to the Eclipse Foundation

See the NOTICE file(s) distributed with this work for additional information regarding copyright ownership.

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.

SPDX-License-Identifier: EPL-2.0 OR Apache-2.0