refactor and move to selenium

This commit is contained in:
2015-01-21 18:23:47 +01:00
parent c688f0353b
commit 9a8c364d38
24 changed files with 174 additions and 116 deletions
+27 -28
View File
@@ -1,28 +1,27 @@
FROM rails:onbuild
#FROM bterkuile/ruby-base
#
#MAINTAINER Benjamin ter Kuile <bterkuile@gmail.com>
#
## Add 'web' user which will run the application
#RUN adduser web --home /home/web --shell /bin/bash --disabled-password --gecos ""
#
## Separate Gemfile ADD so that `bundle install` can be cached more effectively
#ADD Gemfile /var/www/
#ADD Gemfile.lock /var/www/
#RUN chown -R web:web /var/www &&\
# mkdir -p /var/bundle &&\
# chown -R web:web /var/bundle
#RUN su -c "cd /var/www && bundle install --deployment --without development test assets --path /var/bundle" -s /bin/bash -l web
#
## Add application source
#ADD . /var/www
#RUN chown -R web:web /var/www
#
#USER web
#
#WORKDIR /var/www
#
##VOLUME ['/Users/bterkuile/companytools/development/rails/mozo_bar/public/system:/var/www/public/system']
#EXPOSE 3000
#
#CMD ["bundle", "exec", "foreman", "start"]
FROM ruby:2.2.0
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
RUN mkdir -p /usr/src/app/vendor
WORKDIR /usr/src/app
# Test
RUN apt-get update && apt-get install -y qt5-default libqt5webkit5-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
# Standard
RUN apt-get update && apt-get install -y nodejs --no-install-recommends && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y mysql-client postgresql-client sqlite3 --no-install-recommends && rm -rf /var/lib/apt/lists/*
# Specific
RUN apt-get update && apt-get install -y dos2unix --no-install-recommends && rm -rf /var/lib/apt/lists/*
COPY Gemfile /usr/src/app/
COPY Gemfile.lock /usr/src/app/
#COPY vendor/cache /usr/src/app/vendor/cache
#RUN bundle install --local
RUN bundle install
COPY . /usr/src/app
EXPOSE 3000
CMD ["rails", "server", '-b', '0.0.0.0']