forked from crosscite/content-negotiation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Fenner
committed
Apr 12, 2017
1 parent
09a018a
commit 9560aa2
Showing
45 changed files
with
3,036 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
TRUSTED_IP=127.0.0.1 | ||
SEARCH_URL=https://search.datacite.org/ | ||
CITEPROC_URL=https://citation.datacite.org/format | ||
LOG_LEVEL=debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: ruby | ||
rvm: | ||
- 2.3.3 | ||
|
||
addons: | ||
code_climate: | ||
repo_token: $CODECLIMATE_REPO_TOKEN | ||
|
||
install: | ||
- travis_retry bundle install | ||
|
||
script: | ||
- bundle exec rspec | ||
- bundle exec codeclimate-test-reporter |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
FROM phusion/passenger-full:0.9.20 | ||
MAINTAINER Martin Fenner "[email protected]" | ||
|
||
# Set correct environment variables. | ||
ENV HOME /home/app | ||
|
||
# Allow app user to read /etc/container_environment | ||
RUN usermod -a -G docker_env app | ||
|
||
# Use baseimage-docker's init process. | ||
CMD ["/sbin/my_init"] | ||
|
||
# Install Ruby 2.3.3 | ||
RUN bash -lc 'rvm --default use ruby-2.3.3' | ||
|
||
# Update installed APT packages | ||
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && \ | ||
apt-get install ntp -y && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Enable Passenger and Nginx and remove the default site | ||
# Preserve env variables for nginx | ||
RUN rm -f /etc/service/nginx/down && \ | ||
rm /etc/nginx/sites-enabled/default | ||
COPY vendor/docker/webapp.conf /etc/nginx/sites-enabled/webapp.conf | ||
COPY vendor/docker/00_app_env.conf /etc/nginx/conf.d/00_app_env.conf | ||
COPY vendor/docker/cors.conf /etc/nginx/conf.d/cors.conf | ||
|
||
# Use Amazon NTP servers | ||
COPY vendor/docker/ntp.conf /etc/ntp.conf | ||
|
||
# Copy webapp folder | ||
COPY . /home/app/webapp/ | ||
RUN mkdir -p /home/app/webapp/vendor/bundle && \ | ||
chown -R app:app /home/app/webapp && \ | ||
chmod -R 755 /home/app/webapp | ||
|
||
# Install Ruby gems | ||
WORKDIR /home/app/webapp | ||
RUN gem update --system && \ | ||
gem install bundler && \ | ||
/sbin/setuser app bundle install --path vendor/bundle | ||
|
||
# Expose web | ||
EXPOSE 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
source 'http://rubygems.org' | ||
|
||
gem 'dotenv' | ||
gem 'bugsnag' | ||
gem 'awesome_print' | ||
gem 'activesupport' | ||
gem 'sinatra' | ||
gem 'sinatra-contrib' | ||
gem 'multi_json' | ||
gem 'json', '~> 1.8', '>= 1.8.5' | ||
gem 'oj', '~> 2.18', '>= 2.18.1' | ||
gem 'iso8601', '~> 0.9.0' | ||
gem 'maremma', '~> 3.0' | ||
gem 'bolognese', '~> 0.8.5' | ||
gem 'nokogiri', '~> 1.6.8' | ||
|
||
group :development do | ||
gem "better_errors" | ||
gem "binding_of_caller" | ||
gem 'thin', '~> 1.7' | ||
end | ||
|
||
group :test do | ||
gem 'rspec' | ||
gem 'capybara' | ||
gem 'webmock', '~> 1.20.0' | ||
gem 'vcr', '~> 3.0.3' | ||
gem 'codeclimate-test-reporter', '~> 1.0.0' | ||
gem 'simplecov' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
activesupport (4.2.8) | ||
i18n (~> 0.7) | ||
minitest (~> 5.1) | ||
thread_safe (~> 0.3, >= 0.3.4) | ||
tzinfo (~> 1.1) | ||
addressable (2.5.1) | ||
public_suffix (~> 2.0, >= 2.0.2) | ||
awesome_print (1.7.0) | ||
backports (3.7.0) | ||
better_errors (2.1.1) | ||
coderay (>= 1.0.0) | ||
erubis (>= 2.6.6) | ||
rack (>= 0.9.0) | ||
bibtex-ruby (4.4.3) | ||
latex-decode (~> 0.0) | ||
binding_of_caller (0.7.2) | ||
debug_inspector (>= 0.0.1) | ||
bolognese (0.8.14) | ||
activesupport (~> 4.2, >= 4.2.5) | ||
bibtex-ruby (~> 4.1) | ||
builder (~> 3.2, >= 3.2.2) | ||
colorize (~> 0.8.1) | ||
loofah (~> 2.0, >= 2.0.3) | ||
maremma (~> 3.5) | ||
namae (~> 0.10.2) | ||
nokogiri (~> 1.6, >= 1.6.8) | ||
postrank-uri (~> 1.0, >= 1.0.18) | ||
thor (~> 0.19) | ||
bugsnag (5.3.0) | ||
builder (3.2.3) | ||
capybara (2.13.0) | ||
addressable | ||
mime-types (>= 1.16) | ||
nokogiri (>= 1.3.3) | ||
rack (>= 1.0.0) | ||
rack-test (>= 0.5.4) | ||
xpath (~> 2.0) | ||
codeclimate-test-reporter (1.0.8) | ||
simplecov (<= 0.13) | ||
coderay (1.1.1) | ||
colorize (0.8.1) | ||
crack (0.4.3) | ||
safe_yaml (~> 1.0.0) | ||
daemons (1.2.4) | ||
debug_inspector (0.0.2) | ||
diff-lcs (1.3) | ||
docile (1.1.5) | ||
dotenv (2.2.0) | ||
erubis (2.7.0) | ||
eventmachine (1.2.3) | ||
excon (0.45.4) | ||
faraday (0.9.2) | ||
multipart-post (>= 1.2, < 3) | ||
faraday-encoding (0.0.4) | ||
faraday | ||
faraday_middleware (0.10.1) | ||
faraday (>= 0.7.4, < 1.0) | ||
i18n (0.8.1) | ||
iso8601 (0.9.1) | ||
json (1.8.6) | ||
latex-decode (0.2.2) | ||
unicode (~> 0.4) | ||
loofah (2.0.3) | ||
nokogiri (>= 1.5.9) | ||
maremma (3.5.6) | ||
activesupport (~> 4.2, >= 4.2.5) | ||
addressable (>= 2.3.6) | ||
builder (~> 3.2, >= 3.2.2) | ||
excon (~> 0.45.0) | ||
faraday (~> 0.9.2) | ||
faraday-encoding (~> 0.0.1) | ||
faraday_middleware (~> 0.10.0) | ||
multi_json (~> 1.11.2) | ||
nokogiri (~> 1.6, >= 1.6.8) | ||
oj (~> 2.18, >= 2.18.1) | ||
mime-types (3.1) | ||
mime-types-data (~> 3.2015) | ||
mime-types-data (3.2016.0521) | ||
mini_portile2 (2.1.0) | ||
minitest (5.10.1) | ||
multi_json (1.11.3) | ||
multipart-post (2.0.0) | ||
namae (0.10.2) | ||
nokogiri (1.6.8.1) | ||
mini_portile2 (~> 2.1.0) | ||
oj (2.18.5) | ||
postrank-uri (1.0.22) | ||
addressable (>= 2.3.0, < 2.6) | ||
nokogiri (>= 1.6.1, < 1.8) | ||
public_suffix (>= 2.0.0, < 2.1) | ||
public_suffix (2.0.5) | ||
rack (1.6.5) | ||
rack-protection (1.5.3) | ||
rack | ||
rack-test (0.6.3) | ||
rack (>= 1.0) | ||
rspec (3.5.0) | ||
rspec-core (~> 3.5.0) | ||
rspec-expectations (~> 3.5.0) | ||
rspec-mocks (~> 3.5.0) | ||
rspec-core (3.5.4) | ||
rspec-support (~> 3.5.0) | ||
rspec-expectations (3.5.0) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.5.0) | ||
rspec-mocks (3.5.0) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.5.0) | ||
rspec-support (3.5.0) | ||
safe_yaml (1.0.4) | ||
simplecov (0.13.0) | ||
docile (~> 1.1.0) | ||
json (>= 1.8, < 3) | ||
simplecov-html (~> 0.10.0) | ||
simplecov-html (0.10.0) | ||
sinatra (1.4.8) | ||
rack (~> 1.5) | ||
rack-protection (~> 1.4) | ||
tilt (>= 1.3, < 3) | ||
sinatra-contrib (1.4.7) | ||
backports (>= 2.0) | ||
multi_json | ||
rack-protection | ||
rack-test | ||
sinatra (~> 1.4.0) | ||
tilt (>= 1.3, < 3) | ||
thin (1.7.0) | ||
daemons (~> 1.0, >= 1.0.9) | ||
eventmachine (~> 1.0, >= 1.0.4) | ||
rack (>= 1, < 3) | ||
thor (0.19.4) | ||
thread_safe (0.3.6) | ||
tilt (2.0.7) | ||
tzinfo (1.2.3) | ||
thread_safe (~> 0.1) | ||
unicode (0.4.4.4) | ||
vcr (3.0.3) | ||
webmock (1.20.4) | ||
addressable (>= 2.3.6) | ||
crack (>= 0.3.2) | ||
xpath (2.0.0) | ||
nokogiri (~> 1.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
activesupport | ||
awesome_print | ||
better_errors | ||
binding_of_caller | ||
bolognese (~> 0.8.5) | ||
bugsnag | ||
capybara | ||
codeclimate-test-reporter (~> 1.0.0) | ||
dotenv | ||
iso8601 (~> 0.9.0) | ||
json (~> 1.8, >= 1.8.5) | ||
maremma (~> 3.0) | ||
multi_json | ||
nokogiri (~> 1.6.8) | ||
oj (~> 2.18, >= 2.18.1) | ||
rspec | ||
simplecov | ||
sinatra | ||
sinatra-contrib | ||
thin (~> 1.7) | ||
vcr (~> 3.0.3) | ||
webmock (~> 1.20.0) | ||
|
||
BUNDLED WITH | ||
1.12.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# content-resolver | ||
# content-resolver | ||
|
||
[![Build Status](https://travis-ci.org/crosscite/content-negotiation.svg?branch=master)](https://travis-ci.org/crosscite/content-negotiation) |
Oops, something went wrong.