added mongodb migrations

added imagemagick
make sure release is up to date
This commit is contained in:
James Allen 2015-09-17 14:07:50 +00:00
parent 5e00d8d3b4
commit 195e22b45e
2 changed files with 13 additions and 1 deletions

5
server-ce/99_migrate.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
which node
which grunt
ls -al /var/www/sharelatex/migrations
cd /var/www/sharelatex && grunt migrate -v

View file

@ -15,6 +15,7 @@ RUN adduser --system --group --home /var/www/sharelatex --no-create-home sharela
# Install ShareLaTeX # Install ShareLaTeX
RUN apt-get install -y git python RUN apt-get install -y git python
RUN git clone -b release https://github.com/sharelatex/sharelatex.git /var/www/sharelatex RUN git clone -b release https://github.com/sharelatex/sharelatex.git /var/www/sharelatex
RUN cd /var/www/sharelatex && git pull origin release
# zlib1g-dev is needed to compile the synctex binaries in the CLSI during `grunt install`. # zlib1g-dev is needed to compile the synctex binaries in the CLSI during `grunt install`.
RUN apt-get install -y zlib1g-dev RUN apt-get install -y zlib1g-dev
@ -28,6 +29,7 @@ RUN cd /var/www/sharelatex/web; \
grunt compile:minify; grunt compile:minify;
# Install Nginx as a reverse proxy # Install Nginx as a reverse proxy
run apt-get update
RUN apt-get install -y nginx; RUN apt-get install -y nginx;
RUN rm /etc/nginx/sites-enabled/default RUN rm /etc/nginx/sites-enabled/default
ADD nginx/nginx.conf /etc/nginx/nginx.conf ADD nginx/nginx.conf /etc/nginx/nginx.conf
@ -70,7 +72,8 @@ RUN echo "selected_scheme scheme-basic" >> /install-tl-unx/texlive.profile; \
RUN rm -r /install-tl-unx; \ RUN rm -r /install-tl-unx; \
rm install-tl-unx.tar.gz rm install-tl-unx.tar.gz
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2014/bin/x86_64-linux/ ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2015/bin/x86_64-linux/
RUN apt-get update
RUN tlmgr install latexmk RUN tlmgr install latexmk
# Install Aspell # Install Aspell
@ -79,10 +82,14 @@ RUN apt-get install -y aspell aspell-en aspell-af aspell-am aspell-ar aspell-ar-
# Install unzip for file uploads # Install unzip for file uploads
RUN apt-get install -y unzip RUN apt-get install -y unzip
# Install imagemagick for image conversions
RUN apt-get install -y imagemagick optipng
# phusion/baseimage init script # phusion/baseimage init script
ADD 00_regen_sharelatex_secrets.sh /etc/my_init.d/00_regen_sharelatex_secrets.sh ADD 00_regen_sharelatex_secrets.sh /etc/my_init.d/00_regen_sharelatex_secrets.sh
ADD 00_make_sharelatex_data_dirs.sh /etc/my_init.d/00_make_sharelatex_data_dirs.sh ADD 00_make_sharelatex_data_dirs.sh /etc/my_init.d/00_make_sharelatex_data_dirs.sh
ADD 00_set_docker_host_ipaddress.sh /etc/my_init.d/00_set_docker_host_ipaddress.sh ADD 00_set_docker_host_ipaddress.sh /etc/my_init.d/00_set_docker_host_ipaddress.sh
ADD 99_migrate.sh /etc/my_init.d/99_migrate.sh
# Install ShareLaTeX settings file # Install ShareLaTeX settings file
RUN mkdir /etc/sharelatex RUN mkdir /etc/sharelatex