Sha256: e1f86e8c08c6707ac66e976648af1f9c1e0b7f0e0527334ff45023569cc6b9fe

Contents?: true

Size: 1.64 KB

Versions: 2

Compression:

Stored size: 1.64 KB

Contents

FROM ubuntu:16.04
MAINTAINER Georgi Tapalilov & Rei Kagetsuki

EXPOSE 3000

RUN apt-get update
RUN apt-get install -y --no-install-recommends apt-utils

RUN apt-get install -y cmake libpng-dev libboost-program-options-dev libboost-regex-dev \
	libboost-system-dev libboost-filesystem-dev build-essential ruby2.3-dev autoconf \
	libgmp-dev imagemagick libmagickcore-dev libmagickwand-dev git libpq-dev postgresql-client

# ENV BUNDLE_PATH=/gems \
#     BUNDLE_BIN=/gems/bin \
#     GEM_HOME=/gems
#
# ENV PATH="${BUNDLE_BIN}:${PATH}"

RUN gem install rails -v 5.1.4 --no-ri --no-rdoc
RUN gem install bundler --no-ri --no-rdoc

ADD	.	/gaku
WORKDIR /gaku

ENV app /app
ENV gaku /gaku

RUN rails new $app --database=postgresql --skip-bundle

WORKDIR $app

RUN echo "gem 'gaku', path: '../gaku'" >> Gemfile
RUN echo "gem 'therubyracer'" >> Gemfile
RUN echo "gem 'therubyracer'" >> Gemfile
RUN echo "gem 'tzinfo-data'" >> Gemfile

RUN bundle install

# WORKDIR $app

RUN bundle exec rails g gaku:docker
# # prepare staging enviroment
# RUN echo "staging:\n  url: postgres://postgres:@postgres:5432/app_staging" >> config/database.yml
# RUN cp config/environments/development.rb config/environments/staging.rb
#
# # generate secret
# RUN SECRET="$(bundle exec rake secret)"; echo "staging:\n  secret_key_base: ${SECRET}" >> config/secrets.yml
#
# # wait for postgres script
# COPY support/docker/check_postgres.sh /usr/bin/check_postgres
# RUN chmod +x /usr/bin/check_postgres
#
# # add route
# RUN sed -i "2imount Gaku::Core::Engine, at: '/'" config/routes.rb
#
# # copy migrations
# RUN bundle exec rake gaku:install:migrations
#
# # assets
#
# RUN bundle exec rake assets:precompile

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gaku-0.3.0 Dockerfile
gaku-0.3.0.pre.4 Dockerfile