vivo-community / vivo-docker2

Dockerized VIVO
Apache License 2.0
8 stars 16 forks source link

Specify solr:7.7.1 #3

Closed awoods closed 5 years ago

awoods commented 5 years ago

Move 'solr-create' command into solr/Dockerfile

Resolves: https://github.com/vivo-community/vivo-docker2/issues/1

Testing this PR

  1. Configure your local VIVO in runtime.properties to connect to the MariaDB and Solr found in this project (vivo-docker2)
    VitroConnection.DataSource.url = jdbc:mysql://localhost/vitrodb
    VitroConnection.DataSource.username = vitrodbUsername
    VitroConnection.DataSource.password = vitrodbPassword
    vitro.local.solr.url = http://localhost:8983/solr/vivocore
  2. Start VIVO
    • Notice errors due to inability to connect to Solr and DB
  3. Start the containers in this project/PR
    $docker-compose build
    $docker-compose up
  4. Restart VIVO
    • Notice success
  5. Log into VIVO as admin
  6. Load sample data
  7. Verify data in Docker/Solr index
  8. Verify data in Docker/MariaDB
    $docker exec -it vitrodb /bin/bash
    $mysql -u root -p
      - Note: password: abc123
    $use vitrodb;
    $show tables;
    $select * from Prefixes;
    $select * from Quads;