Maintainer: @dabm-git - AIR Institute
This package relies on tokens from GitGub, GitLab and BitBucket APIs that are configured in the config.ini file in the root of the service. The service also depends on an instance of Elasticsearch to store and collect information, where the configuration of the IP, port and credentials are done in this same file. See: https://github.com/eclipse-opensmartclide/smartclide-service-discovery-poc/blob/main/ServiceDiscovery/config.ini
The service makes use of the 2020 port, be sure to expose it.
python3 -m pip install --no-cache-dir -r requirements.txt
python3 -m pip install . --upgrade
Or build the image with the provided dockerfile.
python3 servicediscovery
Or using the built docker image hosted by ghcr.io, with docker-compose.
docker-compose up
version: '3'
services:
service_discovery:
restart: unless-stopped
image: ghcr.io/eclipse-opensmartclide/smartclide/service-discovery:2022-10-10
working_dir: /app/smartclide-service-discovery-poc/ServiceDiscovery
command: python3 ServiceDiscovery
ports:
- "2020:2020"
Be sure to replace the necessary configuration in the config.ini file, to do this you can overwrite it with the following section in docker-compose.yml:
volumes:
-./config.ini:/app/smartclide-service-discovery-poc/ServiceDiscovery/config.ini
Maintainer: @dabm-git - AIR Institute
This script collects information from Programableweb, to avoid saturation and blocking of IP addresses by a high number of requests, this script can be executed on a regular basis, obtaining a section each time.
When launched, information is collected in batches that are exported to .csv files, and when a batch is finished, the results are merged under the same .csv file.