You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 needgit fetch origin <branch>.first.There is one zip file with two folders inside ...
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
./cleanup.ps1 -l./gdsc.ps1 -lThen 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 -gcgets the content from the file,replacechanges "IfNotPresent" to "Always" (this controls how the versions are checked un updated). The|takes the ouput of the replace and gives it tokubectl apply -fwhich uses the changed file to reload the solr deployment with the new setting.After wating for a bit everything should be working ... to check
You should see the solr interface (with no errors) and if you select collections you should see three: dcat, collections, json-ld
kubectl get pods -n gdsc, find the gdsc tools pod, copy the entire name and ...)kubectl exec -it <pod name copied> -n gdsc -- /bin/shpythonimport gdscto see if it is presentquit()to exit pythonpip install -e /toolsThis may take a while, hopefully we only do it once, but I am still working on this bit
python tools.pyIf this fails, make sure you are in the /gdsc directory in the shell (not python) and try again