-
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 #97 from OpenDSA/docker-lti
Docker lti
- Loading branch information
Showing
13 changed files
with
109 additions
and
192 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,4 +1,4 @@ | ||
FROM ruby:2.7.1 | ||
FROM docker.io/bitnami/ruby:2.7 | ||
|
||
MAINTAINER Jihane Najdi <[email protected]> | ||
|
||
|
@@ -10,45 +10,31 @@ ARG LTI_BRANCH='master' | |
ENV TZ=America/New_York | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
# Setting the default opendsa Makefile variable ODSA_ENV to 'PROD' and PYTHON to 'python' | ||
ENV PYTHON='python' | ||
# Setting the default opendsa Makefile variable ODSA_ENV to 'PROD' | ||
ENV ODSA_ENV='PROD' | ||
|
||
ENV GEM_HOME /usr/local/bundle | ||
ENV PATH $GEM_HOME/bin:$PATH | ||
ENV BUNDLER_VERSION 2.1.4 | ||
|
||
ENV RAILS_ENV=$RAILS_ENV | ||
ENV ODSA_BRANCH=$ODSA_BRANCH | ||
ENV LTI_BRANCH=$LTI_BRANCH | ||
|
||
# shared-mime-info temporary due to mimemagic issues | ||
RUN apt-get update -qq \ | ||
&& apt-get install -y apt-utils build-essential libpq-dev lsof vim cron curl \ | ||
&& apt-get install -y nodejs npm python3-pip git-core zlib1g-dev libssl-dev libreadline-dev libyaml-dev libevent-dev libsqlite3-dev libxml2-dev libxml2 libxslt1-dev libffi-dev libxslt-dev sqlite3 dkms python-dev python-feedvalidator python-sphinx \ | ||
&& apt-get install -y default-jre \ | ||
&& apt-get upgrade -y \ | ||
&& pip3 install --upgrade pip \ | ||
&& npm install uglify-js -g \ | ||
&& npm install clean-css-cli -g \ | ||
&& rm -f /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python \ | ||
&& rm -f /usr/bin/pip && ln -s /usr/bin/pip3 /usr/bin/pip \ | ||
&& rm -rf /var/apt/lists/* | ||
|
||
RUN gem install bundler -v $BUNDLER_VERSION \ | ||
&& bundle config --global path "$GEM_HOME" \ | ||
&& bundle config --global bin "$GEM_HOME/bin" \ | ||
&& bundle config git.allow_insecure true | ||
&& apt-get install -y apt-utils build-essential cron \ | ||
&& apt-get install -y libyaml-dev libevent-dev libxml2 libffi-dev libxslt-dev libmariadb-dev-compat libmariadb-dev \ | ||
&& apt-get install -y shared-mime-info \ | ||
&& rm -rf /var/apt/lists/* | ||
|
||
RUN gem install bundler -v $BUNDLER_VERSION | ||
|
||
RUN mkdir /opendsa-lti && echo "cd /opendsa-lti" >> /root/.bashrc | ||
WORKDIR /opendsa-lti | ||
|
||
COPY requirements.txt requirements.txt | ||
|
||
RUN pip3 install -r requirements.txt | ||
|
||
COPY Gemfile Gemfile | ||
COPY Gemfile.lock Gemfile.lock | ||
|
||
RUN bundle config build.nokogiri --use-system-libraries | ||
RUN bundle install | ||
|
||
EXPOSE 80 |
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.