addressed PR comments

This commit is contained in:
mserranom 2019-08-08 10:44:14 +00:00
parent 28772d6d25
commit 803f920b55
2 changed files with 20 additions and 12 deletions

9
server-ce/.editorconfig Normal file
View file

@ -0,0 +1,9 @@
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

View file

@ -39,12 +39,11 @@ RUN wget https://nodejs.org/dist/v6.17.1/node-v6.17.1-linux-x64.tar.gz && \
# Install TexLive # Install TexLive
# --------------- # ---------------
RUN wget https://ctan.crest.fr/tex-archive/systems/texlive/tlnet/install-tl-unx.tar.gz; \ RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
mkdir /install-tl-unx; \ mkdir /install-tl-unx && \
tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1
RUN echo "selected_scheme scheme-basic" >> /install-tl-unx/texlive.profile; \ RUN echo "selected_scheme scheme-basic" >> /install-tl-unx/texlive.profile && \
/install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \ /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile
-repository http://tug.ctan.org/systems/texlive/tlnet/
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/2019/bin/x86_64-linux/ ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2019/bin/x86_64-linux/
@ -54,10 +53,10 @@ RUN tlmgr install texcount
# Set up sharelatex user and home directory # Set up sharelatex user and home directory
# ----------------------------------------- # -----------------------------------------
RUN adduser --system --group --home /var/www/sharelatex --no-create-home sharelatex; \ RUN adduser --system --group --home /var/www/sharelatex --no-create-home sharelatex && \
mkdir -p /var/lib/sharelatex; \ mkdir -p /var/lib/sharelatex && \
chown www-data:www-data /var/lib/sharelatex; \ chown www-data:www-data /var/lib/sharelatex && \
mkdir -p /var/log/sharelatex; \ mkdir -p /var/log/sharelatex && \
chown www-data:www-data /var/log/sharelatex; \ chown www-data:www-data /var/log/sharelatex && \
mkdir -p /var/lib/sharelatex/data/template_files; \ mkdir -p /var/lib/sharelatex/data/template_files && \
chown www-data:www-data /var/lib/sharelatex/data/template_files; chown www-data:www-data /var/lib/sharelatex/data/template_files