Description: Repo for the KPMP upload tool back-end
Visit kpmp.github.io/dlu
- Connect to Mongo by opening ssh session to prod-upload
ssh <username>@172.20.66.165 -L 27017:localhost:27017
- Within mongo, delete package from package and file collection
- Delete package off of the DLU
- sudo rm /nfs/corenfs/kpmp-data/prod/dataLake/package_<package_id>
- Navigate to clearCache URL to clear the old cache
https://upload.kpmp.org/api/v1/clearCache
- Navigate to upload and confirm packages no longer exist
- Get the credentials.json file from kpmp-secure/orion-data and put it in the
src/main/resources
directory. - Get the StoredCredential file from kpmp-secure/orion-data and put it in the
tokens
directory (create if it doesn't exist). - Restart the spring container.
NOTE: You need to create a new credentials file if the permissions change
- Delete (if necessary) the old
tokens
directory. - Bring the application down and then back up.
- Spring will generate a URL and print it to stdout, grab it and open it in a browser.
- Authenticate as [email protected] and grant the requested access.
- The redirect to localhost will probably fail, since you're not running the app locally. Copy this URL.
- Go into the spring container and do a wget on the pasted URL. This will create the credentials file and the app will start running.
- Delete (if necessary) the
StoredCredential
file in theglobus_tokens
directory. - Bring the application down and then back up.
- Spring will generate a URL and print it to stdout (you may have to look in Kibana), grab it and open it in a browser.
- Authenticate.
- The redirect to localhost will probably fail, since you're not running the app locally. Copy this URL.
- Go into the spring container and do a wget on the pasted URL. This will create the credentials file and the app will start running. NOTE: if "localhost" doesn't work for this URL, try "127.0.0.1".
./gradlew build docker
The default tag is the github branch name if no verison is provided
To pass a version when building the docker image execute
./gradlew build docker -Ptag=<tagNumber>