-
Notifications
You must be signed in to change notification settings - Fork 38
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 #577 from PecanProject/rails51-with-asset-pipeline…
…-and-jquery-in-gems Rails51 with asset pipeline and jquery in gems
- Loading branch information
Showing
891 changed files
with
1,087 additions
and
596 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
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 @@ | ||
betydb_rails3 | ||
betydb_rails5 |
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 @@ | ||
ruby-2.1.5 | ||
ruby-2.3.0 |
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,12 +1,14 @@ | ||
FROM ruby:2.1 | ||
FROM ruby:2.3 | ||
MAINTAINER Max Burnette <[email protected]> | ||
|
||
# Install dependencies | ||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -y \ | ||
curl \ | ||
git \ | ||
libgeos-dev \ | ||
netcat \ | ||
nodejs \ | ||
postgresql-client \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
@@ -15,15 +17,17 @@ WORKDIR /home/bety | |
|
||
# install gems (allowing for caching) | ||
COPY /Gemfile* /home/bety/ | ||
RUN gem install bundler && \ | ||
bundle install --without javascript_testing --path vendor/bundle | ||
RUN gem install bundler \ | ||
&& bundle install --with docker --without "test development production debug javascript_testing" | ||
|
||
|
||
# port that is exposed (standard ruby port) | ||
EXPOSE 3000 | ||
EXPOSE 8000 | ||
|
||
# copy rest of the files | ||
COPY / /home/bety | ||
COPY /docker/database.yml /home/bety/config/database.yml | ||
COPY /docker/config.ru /home/bety/config.ru | ||
|
||
# download dump.bety and load.bety scripts and configure app | ||
RUN curl -LOs https://raw.githubusercontent.com/PecanProject/pecan/master/scripts/load.bety.sh \ | ||
|
@@ -41,11 +45,18 @@ ARG BETY_GIT_DATE="unknown" | |
ENV LOCAL_SERVER=99 \ | ||
REMOTE_SERVERS="0 1 2 5" \ | ||
RAILS_ENV="production" \ | ||
RAILS_RELATIVE_URL_ROOT="" \ | ||
SECRET_KEY_BASE="ThisIsNotReallySuchAGreatSecret" \ | ||
UNICORN_WORKER_PROCESSES="3" \ | ||
UNICORN_PORT="8000" \ | ||
BETY_GIT_TAGS=${BETY_GIT_TAGS} \ | ||
BETY_GIT_BRANCH=${BETY_GIT_BRANCH} \ | ||
BETY_GIT_CHECKSUM=${BETY_GIT_CHECKSUM} \ | ||
BETY_GIT_DATE=${BETY_GIT_DATE} | ||
|
||
# expose public files | ||
VOLUME ["/home/bety/public"] | ||
|
||
# default command to run bety web-app | ||
ENTRYPOINT ["/home/bety/docker/entrypoint.sh"] | ||
CMD ["server"] | ||
CMD ["unicorn"] |
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
Oops, something went wrong.