mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 17:23:51 +00:00
added mongodb migrations
added imagemagick make sure release is up to date
This commit is contained in:
parent
be1cdc0df1
commit
131450452e
2 changed files with 13 additions and 1 deletions
5
99_migrate.sh
Executable file
5
99_migrate.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
which node
|
||||
which grunt
|
||||
ls -al /var/www/sharelatex/migrations
|
||||
cd /var/www/sharelatex && grunt migrate -v
|
|
@ -15,6 +15,7 @@ RUN adduser --system --group --home /var/www/sharelatex --no-create-home sharela
|
|||
# Install ShareLaTeX
|
||||
RUN apt-get install -y git python
|
||||
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`.
|
||||
RUN apt-get install -y zlib1g-dev
|
||||
|
@ -28,6 +29,7 @@ RUN cd /var/www/sharelatex/web; \
|
|||
grunt compile:minify;
|
||||
|
||||
# Install Nginx as a reverse proxy
|
||||
run apt-get update
|
||||
RUN apt-get install -y nginx;
|
||||
RUN rm /etc/nginx/sites-enabled/default
|
||||
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; \
|
||||
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
|
||||
|
||||
# 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
|
||||
RUN apt-get install -y unzip
|
||||
|
||||
# Install imagemagick for image conversions
|
||||
RUN apt-get install -y imagemagick optipng
|
||||
|
||||
# phusion/baseimage init script
|
||||
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_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
|
||||
RUN mkdir /etc/sharelatex
|
||||
|
|
Loading…
Reference in a new issue