Skip to content

Set up work env #10

@tibbben

Description

@tibbben
  • Pull these three branches into their correct directories
    • repo docker / branch tools
    • repo tools / branch flask-tools
    • repo kubernetes / branch docker-dev
      For each one, you need to navigate to the correct directory and then do git pull origin <branch>. Remember, if you do not have the branch on your local machine, you will need git fetch origin <branch>. first.
  • get the cataloging files from google drive and unzip into their correct directories.
    There is one zip file with two folders inside ...
    • ./gdsc/_localdata/solr
    • ./gdsc/_localdata/data
      You may want to rename the existing folders (as a backup) before copying the new files in. If everything works as expected they can be deleted later
    • restart the GDSC k8s stack, from ./gdsc/kubernetes directory in powershell
    • > ./cleanup.ps1 -l
    • > ./gdsc.ps1 -l
      Then reload the solr deployment, ithis next command forces it to update the solr version
    • > gc deployments/solr-deployment.yaml).replace('IfNotPresent',"Always") | kubectl apply -f -
      gc gets the content from the file, replace changes "IfNotPresent" to "Always" (this controls how the versions are checked un updated). The | takes the ouput of the replace and gives it to kubectl apply -f which uses the changed file to reload the solr deployment with the new setting.

After wating for a bit everything should be working ... to check

  • visit: https://localhost:8983
    You should see the solr interface (with no errors) and if you select collections you should see three: dcat, collections, json-ld
  • get to the shell on the gdsc-tools pod (kubectl get pods -n gdsc, find the gdsc tools pod, copy the entire name and ...) kubectl exec -it <pod name copied> -n gdsc -- /bin/sh
  • check for the gdsc python module
    • run python
    • type import gdsc to see if it is present
    • type quit() to exit python
  • If it did not work we need to install the gdsc module
    • pip install -e /tools
      This may take a while, hopefully we only do it once, but I am still working on this bit
    • check for the gdsc module (like above)
  • once the gdsc module is installed type python tools.py
    If this fails, make sure you are in the /gdsc directory in the shell (not python) and try again
  • visit http://localhost:5150 to see if it is working

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions