About a year ago, SDSC deployed an object store based on OpenStack Swift. I really haven’t had much of a use for it but it just seems like such a neat idea, not to mention the price. I noticed that Mathias Meyer @roidrage published a neat little on GitHub, called S3itch. After looking at the code I decided I could make this work with the stuff at SDSC. I forked the code, which can be found at https://github.com/cwebberOps/s3itch, and reworked the code so it would work with the Rackspace provider and pointed it at SDSC. After a little digging around for the right URL I managed to get it up and running. I need to update the README.md to reflect my changes but here is the run down on how UC and UC Affiliated users can get started with Skitch and the Swift storage at SDSC.
- Before we begin, this tutorial assumes that you are running on OS X
- Sign up for an account with SDSC at https://cloud.sdsc.edu/hp/request.php
- Once you have the account info, create a folder for this project. You will need to make it world readable.
- Sign up for an account with Heroku and follow the Getting Started with Ruby Apps document. (You don’t actually NEED Heroku, it just means you don’t have to run the server on your local box)
- Download Skitch
- Clone the Repo from GitHub
- Change directories to the newly cloned repo.
- Copy the
.env.samplefile to.env - Update the
.envfile.- The HTTP variables are used for Skitch to auth to your app, so use something random.
- The BUCKET is the directory that you created in the Cloud Explorer.
- Run
heroku plugins:install git://github.com/ddollar/heroku-config.gitto install the heroku-config plugin. - Run
heroku create --stack cedarto create the an app on Heroku - Run
git push heroku masterto push the app code up to Heroku - Run
heroku config:pushto push the ENV variables in.envup to Heroku - Open Skitch and the Sharing Preferences tab.
- Create a new WebDAV Account
- The Server field is the name of your Heroku app
- The User and Password fields correspond to the HTTP variables you set in the
.envfile - The Directory is left empty
- The Base URL is the public link from the folder that you are uploading to. This can be found in the Cloud Explorer. Please note that it cannot have a trailing slash.
- You should now be able to Share your screenshots and Copy the links as you go.
