forked from wvulibraries/hydra_acda_portal_public
-
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.
Merge pull request #58 from wvulibraries/main
Feb 2 - Mar 22 update
- Loading branch information
Showing
34 changed files
with
468 additions
and
230 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 |
---|---|---|
@@ -1 +1,5 @@ | ||
.DS_Store | ||
.DS_Store | ||
/data/ | ||
/data/* | ||
/env/ | ||
/env* |
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,30 +1,31 @@ | ||
FROM ruby:2.7.7 | ||
|
||
ENV BUNDLER_VERSION=2.2.27 | ||
ENV RAILS_VERSION=5.2.6 | ||
ENV BUNDLER_VERSION=2.4.7 | ||
ENV NODE_VERSION=18 | ||
ENV RAILS_VERSION=5.2.8.1 | ||
# should match local folder of our application | ||
ENV PROJECT_PATH hydra | ||
ENV TZ="America/New_York" | ||
|
||
RUN mkdir -p /home/hydra | ||
WORKDIR /home/hydra | ||
ADD ./hydra /home/hydra | ||
RUN mkdir -p /home/${PROJECT_PATH}/ | ||
WORKDIR /home/${PROJECT_PATH} | ||
ADD ./${PROJECT_PATH} /home/${PROJECT_PATH} | ||
|
||
RUN apt-get update && apt-get -y install cron | ||
RUN apt-get update && apt-get -y install cron postgresql-client | ||
|
||
# Use JEMALLOC instead | ||
# JEMalloc is a faster garbage collection for Ruby. | ||
# ------------------------------------------------------------------------------------------------- | ||
RUN apt-get install -y libjemalloc2 libjemalloc-dev | ||
ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so | ||
RUN apt-get install -y libjemalloc2 | ||
ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2 | ||
|
||
RUN \ | ||
gem update --system --quiet && \ | ||
gem install bundler -v ${BUNDLER_VERSION} && \ | ||
gem install rails -v ${RAILS_VERSION} && \ | ||
bundle install --jobs=4 --retry=3 | ||
bundle install --jobs=4 --retry=3 | ||
|
||
# Node.js | ||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \ | ||
&& apt-get install -y nodejs | ||
|
||
ADD ./startup.sh /usr/bin/ | ||
RUN chmod -v +x /usr/bin/startup.sh | ||
ENTRYPOINT ["/usr/bin/startup.sh"] | ||
# ------------------------------------------------------------------------------------------------- | ||
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - \ | ||
&& apt-get -y install nodejs |
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
Oops, something went wrong.