forked from ontoportal/ncbo_cron
-
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 #1 from lifewatch-eric/ecoportal-ontoportal-reset
Ontoportal align: Ecoportal ontoportal reset
- Loading branch information
Showing
33 changed files
with
1,694 additions
and
327 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
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,13 +1,23 @@ | ||
FROM ruby:2.6 | ||
ARG RUBY_VERSION | ||
ARG DISTRO_NAME=bullseye | ||
|
||
RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends openjdk-11-jre-headless raptor2-utils wait-for-it | ||
FROM ruby:$RUBY_VERSION-$DISTRO_NAME | ||
|
||
RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends \ | ||
openjdk-11-jre-headless \ | ||
raptor2-utils \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# The Gemfile Caching Trick | ||
# we install gems before copying the code in its own layer so that gems would not have to get | ||
# installed every single time code is updated | ||
RUN mkdir -p /srv/ontoportal/ncbo_cron | ||
RUN mkdir -p /srv/ontoportal/bundle | ||
COPY Gemfile* *.gemspec /srv/ontoportal/ncbo_cron/ | ||
|
||
WORKDIR /srv/ontoportal/ncbo_cron | ||
RUN gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)" | ||
|
||
RUN gem update --system | ||
RUN gem install bundler | ||
ENV BUNDLE_PATH=/srv/ontoportal/bundle | ||
RUN bundle install | ||
|
||
COPY . /srv/ontoportal/ncbo_cron | ||
CMD ["/bin/bash"] |
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.