SciDrive is a REST-service supporting VOSpace 2.0 and Dropbox protocols to access the data. The primary data storage platform is OpenStack SWIFT.
The project is based on Jersey REST framework and provides the REST service allowing to store the data in a cloud storage. The service allows extracting metadata from known filetypes to store it in 3rd-party services.
There are public service and web portal running at http://www.scidrive.org
- Install OpenStack SWIFT cluster using SWIFT binaries with SWAuth authentication
- Setup Apache Tomcat, MySQL and RabbitMQ
- Create a new database in MySQL using the scidrive/vospace.sql script
- Make changes to the scidrive/src/application.properties file. There is documentation on the application properties in Wiki
- Generate a pool of SWIFT users using the scidrive/sql/generate_swift_users.pl script
- Use Apache Ant to create the war file and deploy it to Tomcat:
ant deploy
- Install the SciDrive web UI to start using this installation.
- You can use the Python command-line tool to access your data from command line
- Clone the code from github: git clone https://github.com/dimm0/scidrive.git, or use GUI
- Import the source code into Eclipse: File->New, Dynamic Web Project
- In Web Module dialog, choose:
- Context root: vospace-2.0
- Content directory: web
- Uncheck the 'Create web.xml deployment descriptor'
- Right-click build.xml file, Run As->Ant Build..., check "resolve" task only, click Run
- This will pull all needed libs from Maven repo and store them in lib folder
- Manually copy libs or create a symlink of lib folder to web/WEB-INF folder, f.e.:
- ln -s ~/Documents/workspace/scidrive/lib ~/Documents/workspace/scidrive/web/WEB-INF/lib
- Copy two libs from lib.local to web/WEB-INF/lib
- Add all libraries from lib folder to Eclipse project build path:
- Select lib/*.jar files in Project explorer, right click, Build Path->Add to Build path
- Do the same for lib.local libs
- Convert project to facetes:
- Go to Project->Properties, Project Facetes. Make sure it's Facet form, if not enable it.
- Should have Dynamic Web Module enabled
- If needed configure Tomcat server in Project->Properties, Server
- Run the web app:
- Right-click on scdive project in Project Explorer, Run As->Run on Server
- When properly configured (application.properties file in right location, pointing to right database, etc) should show server log for running SciDrive REST resources:
Feb 14, 2014 1:30:20 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
edu.jhu.pha.vosync.rest
edu.jhu.pha.vospace.rest
edu.jhu.pha.vospace.oauth
Feb 14, 2014 1:30:21 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
class edu.jhu.pha.vospace.oauth.RequestTokenRequest
class edu.jhu.pha.vospace.rest.NodesController
class edu.jhu.pha.vospace.oauth.AccessTokenRequest
class edu.jhu.pha.vosync.rest.DropboxService
class edu.jhu.pha.vospace.rest.MetadataController
class edu.jhu.pha.vospace.rest.DataController
class edu.jhu.pha.vospace.rest.TransfersController