Added mina deploy

This commit is contained in:
Priit Tamboom 2014-09-22 11:56:17 +03:00
parent 9cc6fed5f2
commit cd82693cb1
4 changed files with 98 additions and 19 deletions

View file

@ -1,5 +1,4 @@
# FROM gitlab/registry
FROM slimmed
FROM gitlab/registry
MAINTAINER Gitlab <info@gitlab.eu>
# Initial build
@ -7,7 +6,7 @@ MAINTAINER Gitlab <info@gitlab.eu>
# ADD ./doc/docker/ssh/authorized_keys /root/.ssh/authorized_keys
#
# Apache2 setup
# ADD ./doc/docker/apache2/ /etc/apache2/sites-enabled
ADD ./doc/docker/apache2/ /etc/apache2/sites-enabled
# Use baseimage-docker's init process.
CMD ["/sbin/my_init"]
@ -17,20 +16,20 @@ ENV RAILS_ENV production
ENV HOME /home/app
# Registry
WORKDIR /home/app/registry
ADD . /home/app/registry
RUN chown -R app:www-data .; chmod -R 750 .; chmod g+s .; umask 027
RUN setuser app ls -la /home/app/registry/vendor/
# RUN setuser app ls -la /home/app/registry/vendor/bundle
RUN rm /home/app/registry/vendor/bundle -rf
RUN setuser app bundle install --deployment
RUN setuser app rake assets:precompile
# WORKDIR /home/app/registry
# ADD . /home/app/registry
# RUN chown -R app:www-data .; chmod -R 750 .; chmod g+s .; umask 027
# RUN setuser app ls -la /home/app/registry/vendor/
# # RUN setuser app ls -la /home/app/registry/vendor/bundle
# RUN rm /home/app/registry/vendor/bundle -rf
# RUN setuser app bundle install --deployment
# RUN setuser app rake assets:precompile
# Registry test
WORKDIR /home/app/registry-test
ADD . /home/app/registry-test
RUN chown -R app:www-data .; chmod -R 750 .; chmod g+s .; umask 027
RUN setuser app bundle install
# WORKDIR /home/app/registry-test
# ADD . /home/app/registry-test
# RUN chown -R app:www-data .; chmod -R 750 .; chmod g+s .; umask 027
# RUN setuser app bundle install
# Ports
# Registry admin: