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
--- /dev/null
+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