Skip to content

KennyPaul/landscape-tools

 
 

Repository files navigation

Landscape Tools

License CI codecov CodeQL

This project contains some tools for making it easier to build and maintain a landscape.

Current tools are:

  • landscapemembers.py - Creates a new landscape.yml or updates an existing landscape.yml file with members populated. Leverages LF SFDC as the primary data source for members include, and uses Crunchbase and other landscapes as secondary data sources for data enrichment.
  • makememberprojectlogos.sh - Creates uniform project/product logos for an organization where they don't have a specific logo to use.
  • downloadcrunchbasedata.sh - Fetches the latest CSV dump of organizations from crunchbase
  • buildimages.sh - Creates images for all the projects of a given company, using the given image as base and adds the project name underneath.

Installation

git clone https://github.com/jmertic/landscape-tools
cd landscape-tools
pip install -r requirements.txt

If you wish to use crunchbase as a data source, add this command.

./downloadcrunchbasedata.sh 

Configuration

All of the Python scripts depend on a config.yaml file being present in the same directory as the script to provide any configuration variables, or passing a -c option to the script with a path to the config file. Settings are below.

landscapeName: # short name of your landscape - matches entry at https://github.com/cncf/landscapeapp/blob/master/landscapes.yml
landscapeMemberClasses: # classes of membership; name matches how it's listed in LF SFDC, and category how it will be listed in the landscape. Example below...
   - name: Associate Membership
     category: Associate
   - name: Gold Membership
     category: Gold
   - name: Platinum Membership
     category: Platinum
   - name: Silver Membership
     category: Silver
project: # project slug
landscapeMemberCategory: # category name of the members section in the landscape.yml file
landscapefile: # filename to use for the outputted landscape.yml file
missingcsvfile: # filename to use for the list of entries with missing parts ( such as a logo, website, or crunchbase entry )

Environment variables

This depends on CRUNCHBASE_KEY being set to a valid key if you wish to use that as a data source ( required by downloadcrunchbasedata.sh ).

Contributing

Feel free to send issues or pull requests ( with a DCO signoff of course :-) ) in accordance with the contribution guidelines

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.7%
  • Shell 3.3%