aboutcode-org / purldb

Tools to create and expose a database of purls (Package URLs). This project is sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase/ and nexB for https://www.aboutcode.org/ Chat is at https://gitter.im/aboutcode-org/discuss
https://purldb.readthedocs.io/
35 stars 23 forks source link

PURLDB: Ensure Maven matching works #52

Open pombredanne opened 1 year ago

pombredanne commented 1 year ago

We need toensure that we have Maven mining and matching for exact JAR working:

JonoYang commented 1 year ago

I've set up purldb and scancode.io for Maven matching by:

  1. Getting the latest versions of purldb and scancode.io
  2. Build purldb/matchcode-toolkit wheel and modify scancode.io Dockerfile to install it
  3. Running docker compose build to build docker containers for both repos
  4. Setting up the .env files /etc/purldb/.env
    SECRET_KEY=<key>
    ALLOWED_HOSTS=192.168.1.12
    CSRF_TRUSTED_ORIGINS=http://192.168.1.12
    SCANCODEIO_URL="http://192.168.1.29/api/"

/etc/scancodeio/.env

SECRET_KEY=<key>
ALLOWED_HOSTS=192.168.1.29
CSRF_TRUSTED_ORIGINS=http://192.168.1.29
PURLDB_URL=http://192.168.1.12/api/
  1. Run webservers
    • For purldb: docker compose --profile visit_and_map up and docker compose --profile scan_queue up
    • For scancode.io: docker compose up

Issue experienced: