mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Merge branch 'development'
This commit is contained in:
@@ -1,12 +1,20 @@
|
|||||||
FROM ruby:2.4.0
|
FROM ruby:2.4.0
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get -qq update \
|
||||||
|
&& apt-get -qq install -y \
|
||||||
|
build-essential \
|
||||||
|
sqlite3 \
|
||||||
|
nodejs \
|
||||||
|
&& apt-get -qq clean \
|
||||||
|
&& rm -rf \
|
||||||
|
/var/lib/apt/lists/* \
|
||||||
|
/tmp/* \
|
||||||
|
/var/tmp/*
|
||||||
|
|
||||||
RUN apt-get install -y build-essential
|
# Set timezone inside the container
|
||||||
RUN apt-get install -y sqlite3 nodejs
|
RUN echo "America/New_York" > /etc/timezone \
|
||||||
|
&& rm /etc/localtime \
|
||||||
ENV WRESTLINGDEV_SECRET_KEY_BASE 077cdbef5c2ccf22543fb17a67339f234306b7fa2e1e4463d851c444c10a5611829a2290b253da78339427f131571fac9a42c83d960b2d25ecc10a4a0a7ce1a2
|
&& ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
|
||||||
ENV WRESTLINGDEV_DEVISE_SECRET_KEY 2f29d49db6704377ba263f7cb9db085b386bcb301c0cd501126a674686ab1a109754071165b08cd72af03cec4642a4dd04361c994462254dd5d85e9594e8b9aa
|
|
||||||
|
|
||||||
RUN gem install --no-rdoc --no-ri bundler
|
RUN gem install --no-rdoc --no-ri bundler
|
||||||
ADD Gemfile* /tmp/
|
ADD Gemfile* /tmp/
|
||||||
|
|||||||
@@ -1,25 +1,53 @@
|
|||||||
FROM ruby:2.4.0
|
FROM ruby:2.4.0
|
||||||
|
|
||||||
RUN apt-get clean
|
RUN apt-get -qq update \
|
||||||
RUN apt-get update
|
&& DEBIAN_FRONTEND=noninteractive apt-get -qq install -y \
|
||||||
RUN apt-get -y upgrade
|
build-essential \
|
||||||
|
libssl-dev \
|
||||||
|
libyaml-dev \
|
||||||
|
libreadline-dev \
|
||||||
|
openssl \
|
||||||
|
curl \
|
||||||
|
git-core \
|
||||||
|
zlib1g-dev \
|
||||||
|
bison \
|
||||||
|
libxml2-dev \
|
||||||
|
libxslt1-dev \
|
||||||
|
libcurl4-openssl-dev \
|
||||||
|
libsqlite3-dev \
|
||||||
|
sqlite3 \
|
||||||
|
wget \
|
||||||
|
apt-transport-https \
|
||||||
|
mysql-client \
|
||||||
|
postfix \
|
||||||
|
nodejs \
|
||||||
|
&& apt-get -qq clean \
|
||||||
|
&& rm -rf \
|
||||||
|
/var/lib/apt/lists/* \
|
||||||
|
/tmp/* \
|
||||||
|
/var/tmp/*
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential libssl-dev libyaml-dev libreadline-dev openssl curl git-core zlib1g-dev bison libxml2-dev libxslt1-dev libcurl4-openssl-dev libsqlite3-dev sqlite3 wget apt-transport-https mysql-client postfix nodejs
|
# Set timezone inside the container
|
||||||
|
RUN echo "America/New_York" > /etc/timezone \
|
||||||
|
&& rm /etc/localtime \
|
||||||
|
&& ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
|
||||||
|
|
||||||
#New Relic
|
#New Relic
|
||||||
#RUN echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list
|
#RUN echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list \
|
||||||
#RUN wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add -
|
# && wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add - \
|
||||||
#RUN apt-get update
|
# && apt-get update \
|
||||||
#RUN apt-get install newrelic-sysmond -y
|
# && apt-get install newrelic-sysmond -y \
|
||||||
#RUN nrsysmond-config --set license_key=$NEW_RELIC_LICENSE_KEY
|
# && nrsysmond-config --set license_key=$NEW_RELIC_LICENSE_KEY
|
||||||
|
|
||||||
#SSL
|
#SSL
|
||||||
RUN mkdir /ssl
|
RUN mkdir /ssl \
|
||||||
RUN openssl req -sha256 -subj '/CN=home/O=home LTD./C=US' -x509 -nodes -days 365 -newkey rsa:2048 -keyout /ssl/server.key -out /ssl/server.crt
|
&& openssl req -sha256 -subj '/CN=home/O=home LTD./C=US' \
|
||||||
|
-x509 -nodes -days 365 -newkey rsa:4096 -keyout /ssl/server.key -out /ssl/server.crt
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
|
|
||||||
|
RUN gem install --no-rdoc --no-ri bundler
|
||||||
#Cache gems so they don't install on every code change
|
#Cache gems so they don't install on every code change
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
COPY Gemfile Gemfile
|
COPY Gemfile Gemfile
|
||||||
@@ -28,13 +56,14 @@ RUN bundle install --without test
|
|||||||
|
|
||||||
# Copy site into place.
|
# Copy site into place.
|
||||||
RUN mkdir /rails
|
RUN mkdir /rails
|
||||||
ENV WRESTLINGDEV_SECRET_KEY_BASE 077cdbef5c2ccf22543fb17a67339f234306b7fa2e1e4463d851c444c10a5611829a2290b253da78339427f131571fac9a42c83d960b2d25ecc10a4a0a7ce1a2
|
|
||||||
ENV WRESTLINGDEV_DEVISE_SECRET_KEY 2f29d49db6704377ba263f7cb9db085b386bcb301c0cd501126a674686ab1a109754071165b08cd72af03cec4642a4dd04361c994462254dd5d85e9594e8b9aa
|
|
||||||
WORKDIR /rails
|
WORKDIR /rails
|
||||||
ADD . /rails
|
ADD . /rails
|
||||||
|
|
||||||
|
#Need temp secret keys to precompile assets
|
||||||
|
ENV WRESTLINGDEV_SECRET_KEY_BASE 077cdbef5c2ccf22543fb17a67339f234306b7fa2e1e4463d851c444c10a5611829a2290b253da78339427f131571fac9a42c83d960b2d25ecc10a4a0a7ce1a2
|
||||||
|
ENV WRESTLINGDEV_DEVISE_SECRET_KEY 2f29d49db6704377ba263f7cb9db085b386bcb301c0cd501126a674686ab1a109754071165b08cd72af03cec4642a4dd04361c994462254dd5d85e9594e8b9aa
|
||||||
RUN RAILS_ENV=production bundle exec rake assets:precompile
|
RUN RAILS_ENV=production bundle exec rake assets:precompile
|
||||||
|
|
||||||
# By default, simply start puma.
|
# By default, simply start puma.
|
||||||
WORKDIR /rails
|
WORKDIR /rails
|
||||||
CMD bundle exec puma -t 5:5 -b 'ssl://0.0.0.0:443?key=/ssl/server.key&verify_mode=none&cert=/ssl/server.crt' -e production
|
CMD bundle exec puma -t 5:5 -b 'ssl://0.0.0.0:443?key=/ssl/server.key&verify_mode=none&cert=/ssl/server.crt' -e production
|
||||||
|
|||||||
Reference in New Issue
Block a user