FEATURE: test container

This commit is contained in:
Sam 2014-06-19 16:10:43 +10:00
parent cf9d696059
commit be7af76b9a
2 changed files with 23 additions and 1 deletions

View File

@ -13,4 +13,5 @@ RUN cd opt/vim-setup && git submodule update --init
RUN ln -s /opt/vim-setup/vimrc /etc/vim/vimrc.local
RUN ln -s /opt/vim-setup/vimfiles/bundle /etc/vim/bundle
RUN apt-get -y install ctags
RUN apt-get -y install thesilversearcher-ag
RUN apt-get -y install silversearcher-ag
RUN cd /var/www/discourse && rm -fr .bundle && sudo -u discourse bundle install --standalone

View File

@ -0,0 +1,21 @@
FROM samsaffron/discourse_21:2.1.2.1
MAINTAINER Sam Saffron "https://twitter.com/samsaffron"
RUN apt-get install -y vim &&\
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\
tar -xjf phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\
rm phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\
cp phantomjs-1.9.7-linux-x86_64/bin/phantomjs /bin/phantomjs &&\
rm -fr phantomjs-1.9.7-linux-x86_64
RUN cd /var/www/discourse &&\
chown -R discourse . &&\
rm -fr .bundle &&\
sudo -u discourse git pull &&\
sudo -u discourse bundle install --standalone &&\
chown -R discourse /var/run/postgresql
WORKDIR /var/www/discourse
ENV LANG en_US.UTF-8
ENTRYPOINT sudo -E -u discourse bundle exec rake docker:test