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
This application is registered in Globus here -- https://app.globus.org/ -- in the "KPMP Data Lake" project as "KPMP Data Lake Uploader". The application has the roles of the users assigned to it under the "Roles" tab.
- Delete (if necessary) the
StoredCredentialfile in theglobus_tokensdirectory. - 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".
- Get your token: https://upload.kpmp.org/api/v1/token
- POST REDCap data (in JSON format) to https://upload.kpmp.org:3030/v1/redcap?token=[token string]
- Check for success response
./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>