commit before merge

This commit is contained in:
2015-01-13 20:44:04 +01:00
parent 5a69e85908
commit 008fce4c6c
3 changed files with 45 additions and 28 deletions
+1 -1
View File
@@ -1 +1 @@
2.1.2
2.2.0
+28 -27
View File
@@ -1,27 +1,28 @@
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 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"]
+16
View File
@@ -0,0 +1,16 @@
db:
image: bterkuile/couchdb
volumes:
- .db:/usr/local/var/lib/couchdb
expose:
- 5984
web:
build: .
#command: bundle exec unicorn -p 3000 -c ./config/unicorn.rb
command: rails s
volumes:
- .:/usr/src/app
ports:
- "3000:3000"
links:
- db