Skip to content

DO NOT MERGE WITH MASTER. Split ember and rails. Dockerize GUP for development. #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dockerize-gup
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/log/*.log
/tmp

config/database.yml
#config/database.yml
*~
\#*#
.#*
Expand All @@ -30,7 +30,7 @@ config/database.yml
#Ignore nbproject
nbproject/

config/config_secret.yml
#config/config_secret.yml
config/passwd
config/deploy.yml
# Ignore generated css etc.
Expand Down
17 changes: 17 additions & 0 deletions Dockerfile-backend
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ruby:2.4

COPY Gemfile Gemfile.lock /apps/
WORKDIR /apps/
RUN apt-get update \
&& apt-get -y install locales \
&& apt-get clean \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen en_US.UTF-8 \
&& touch /var/tmp/gup_auth_override.enable \
&& bundle install

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV RAILS_LOG_TO_STDOUT=true

CMD ["bundle", "exec", "rails", "server", "-p", "3000", "-b", "0.0.0.0"]
14 changes: 14 additions & 0 deletions Dockerfile-frontend
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:6

COPY frontend/package.json /apps/
WORKDIR /apps
ENV PATH=/apps/bin:$PATH

RUN set -ex \
&& npm install -g ember-cli \
&& npm install -g bower \
&& npm install -g phantomjs-prebuilt \
&& npm install -g check-dependencies

USER node
CMD ["ember", "server", "--live-reload-port", "35730"]
15 changes: 15 additions & 0 deletions Dockerfile-solr
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM solr:5

RUN precreate-core gup-publications \
&& precreate-core gup-people \
&& precreate-core gup-journals \
&& precreate-core gup-guresearch

COPY solr/postgresql-42.2.5.jar /opt/solr/server/lib/
COPY solr/default/conf/solrconfig.xml solr/gup-publications/conf/schema.xml solr/gup-publications/conf/dataimportconfig.xml /opt/solr/server/solr/mycores/gup-publications/conf/
COPY solr/default/conf/solrconfig.xml solr/gup-people/conf/schema.xml solr/gup-people/conf/dataimportconfig.xml /opt/solr/server/solr/mycores/gup-people/conf/
COPY solr/default/conf/solrconfig.xml solr/gup-journals/conf/schema.xml solr/gup-journals/conf/dataimportconfig.xml /opt/solr/server/solr/mycores/gup-journals/conf/
COPY solr/default/conf/solrconfig.xml solr/gup-guresearch/conf/schema.xml solr/gup-guresearch/conf/dataimportconfig.xml /opt/solr/server/solr/mycores/gup-guresearch/conf/
COPY solr/full-reindex.sh /opt/solr/bin/


8 changes: 3 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
source 'https://rubygems.org'

# Use this version of ruby (rvm will use this line)
ruby "2.3.1"
# ruby "2.3.1"

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.7'
gem 'rails', '4.2.8'
# Use postgresql as the database for Active Record
gem 'pg', '~> 0.15'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
Expand Down Expand Up @@ -32,8 +32,6 @@ group :test do
gem 'webmock'
end

gem "ember-cli-rails"

gem "codeclimate-test-reporter", group: :test, require: nil
gem 'rack-cors'

Expand All @@ -47,4 +45,4 @@ gem 'rsolr'
gem 'will_paginate', '~> 3.0.5'
gem 'spreadsheet'
gem 'oai'
gem 'naturalsort', :require => 'natural_sort_kernel'
gem 'naturalsort', :require => 'natural_sort_kernel'
Loading