brew install cmake
brew install postgresql
brew install imagemagick --with-ghostscript --with-openjpeg
brew install redis
git clone git@github.com:nulib/images.git
config/*.yml.example
configuration files with actual config values and rename to .yml
bundle config gems.contribsys.com username:password
<images app>/jetty
with known working jetty directorycd
inside the application directory and run bundle install
bundle exec rake db:migrate
bundle exec rake jetty:config
bundle exec rake jetty:start
bundle exec rake db:test:prepare
You'll need to install imagemagick to handle the tiff to jp2 conversion on your local machine.
brew install imagemagick --with-libtiff --with-jp2
You'll also need redis running on port 6379
brew install redis
Then you can start sidekiq normally using bundle exec sidekiq
cd
to the application directoryredis-server
bundle exec sidekiq
rake jetty:start
(if not already running)rails server -p 3331
You'll need to be connected to SSL VPN.
The capybara-webkit tests require a WebKit implementation from Qt that can be installed with homebrew. See detailed instructions.
brew install qt@5.5
brew link --force qt55
After running this command you should get the following output:
$ which qmake
/usr/local/bin/qmake
Make sure to start jetty with rake jetty:start
before running the tests.
Run rspec spec
to test the entire app.
To test the main image model, run:
rspec spec/models/multiresimage_spec.rb
To integration test the app, run:
rspec spec/features
cap [environment] deploy
Keep in mind that a deploy only copies over whatever files are in the public github repo, so many config files don't get copied during a deploy.
We're going to mount shares on images (both staging and prod) and use ImageMover and use FileUtils to move them around.