This repository has been archived by the owner on Oct 27, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from ualbertalib/issue144
configuration changes for env variables; added env variable to enable temp login in production; added Dockerfile to the codebase.
- Loading branch information
Showing
9 changed files
with
48 additions
and
11 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 |
---|---|---|
|
@@ -83,3 +83,4 @@ RSpec/ExampleLength: | |
|
||
RSpec/MultipleExpectations: | ||
Enabled: false | ||
|
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,23 @@ | ||
FROM ualibraries/ruby_plus2.3.3 | ||
# https://github.com/ualbertalib/DIDockerImages/blob/master/RubyPlus/Dockerfile | ||
RUN apt-get update -qq && \ | ||
apt-get install -y libpq-dev \ | ||
nodejs \ | ||
libreoffice-core \ | ||
libreoffice-base-core \ | ||
libreoffice-common \ | ||
imagemagick \ | ||
unzip && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
ADD . /app | ||
RUN echo "gem 'tinymce-rails-imageupload', github: 'PerfectlyNormal/tinymce-rails-imageupload'" >> /app/Gemfile | ||
RUN cd /app && bundle install | ||
RUN cd /app && rake assets:precompile | ||
|
||
CMD rake db:migrate && rails server -b 0.0.0.0 | ||
|
||
EXPOSE 3000 | ||
|
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
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
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,15 +1,15 @@ | ||
development: | ||
user: fedoraAdmin | ||
password: fedoraAdmin | ||
url: <%= ENV['FCREPO_DEVELOPMENT_URL'] || 'http://localhost:8984/rest' %> | ||
url: <%= ENV['FCREPO_URL'] || 'http://localhost:8984/rest' %> | ||
base_path: /dev | ||
test: | ||
user: fedoraAdmin | ||
password: fedoraAdmin | ||
url: <%= ENV['FCREPO_TEST_URL'] || 'http://localhost:8986/rest' %> | ||
url: <%= ENV['FCREPO_URL'] || 'http://localhost:8986/rest' %> | ||
base_path: /test | ||
production: | ||
user: fedoraAdmin | ||
password: fedoraAdmin | ||
url: <%= ENV['FCREPO_PROD_URL'] || 'http://localhost:8983/rest' %> | ||
url: <%= ENV['FCREPO_URL'] || 'http://localhost:8983/rest' %> | ||
base_path: /prod |
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,7 +1,7 @@ | ||
# This is a sample config file that points to a solr server for each environment | ||
development: | ||
url: <%= ENV['SOLR_DEVELOPMENT_URL'] || 'http://localhost:8983/solr/hydra-development' %> | ||
url: <%= ENV['SOLR_URL'] || 'http://localhost:8983/solr/hydra-development' %> | ||
test: | ||
url: <%= ENV['SOLR_TEST_URL'] || 'http://localhost:8985/solr/hydra-test' %> | ||
url: <%= ENV['SOLR_URL'] || 'http://localhost:8985/solr/hydra-test' %> | ||
production: | ||
url: http://your.production.server:8080/bl_solr/core0 | ||
url: <%= ENV['SOLR_URL'] || 'http://your.production.server:8080/bl_solr/core0' %> |