Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync to latest version & improvements #15

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Sync with latest & some config modification
dingyx99 committed Oct 29, 2021
commit 9255356c0aa8a4f646e2f51738ea008d3d756448
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ build:
docker build --build-arg login_text="${LOGIN_TEXT}" \
--build-arg collab_text="${COLLAB_TEXT}" \
--build-arg admin_is_sysadmin="${ADMIN_IS_SYSADMIN}" \
--network=`docker network create overleaf-web` \
-t "ldap-overleaf-sl" ldap-overleaf-sl

clean: check_clean
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -143,13 +143,6 @@ make
```
to generate the ldap-overleaf-sl docker image.

use the command
```
docker network create web
```
to create a network for the docker instances.


## Startup

There are 2 different ways of starting either using Traefik or using Certbot. Adapt the one you want to use.
12 changes: 6 additions & 6 deletions docker-compose.traefik.yml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ services:
security_opt:
- no-new-privileges:true
networks:
- web
- overleaf-web
ports:
- 80:80
- 443:443
@@ -27,7 +27,7 @@ services:
#- "--api.insecure=true" # provides the dashboard on http://IPADRESS:8080
- "--providers.docker=true"
- "--ping"
- "--providers.docker.network=web"
- "--providers.docker.network=overleaf-web"
- "--providers.docker.exposedbydefault=false"
- "--providers.file.filename=/dynamic_conf.yml"
- "--entrypoints.web.address=:80"
@@ -70,7 +70,7 @@ services:
# condition: service_started
privileged: false
networks:
- web
- overleaf-web
expose:
- 80
- 443
@@ -191,7 +191,7 @@ services:
- "traefik.tcp.routers.mongodb.tls=true"
- "traefik.tcp.routers.mongodb.entrypoints=mongo"
networks:
- web
- overleaf-web

redis:
restart: always
@@ -215,9 +215,9 @@ services:
timeout: 5s
retries: 5
networks:
- web
- overleaf-web

networks:
web:
overleaf-web:
external: true

16 changes: 11 additions & 5 deletions ldap-overleaf-sl/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM sharelatex/sharelatex:2.6.1
FROM sharelatex/sharelatex:latest
# FROM sharelatex/sharelatex:latest
# latest might not be tested
# e.g. the AuthenticationManager.js script had to be adapted after versions 2.3.1
@@ -23,12 +23,17 @@ RUN npm install ldapts
RUN npm install ldap-escape
#RUN npm install bcrypt@5.0.0

# This variant of updateing texlive does not work
#RUN bash -c tlmgr install scheme-full
# try this one:
RUN apt-get update
RUN apt-get -y install python-pygments
#RUN apt-get -y install texlive texlive-lang-german texlive-latex-extra texlive-full texlive-science

# Update TeX Live
RUN tlmgr init-usertree && \
tlmgr update --self --all
## Uncomment under lines if you need to install full TeXlive, and comment the previous line
# tlmgr update --self --all && \
# tlmgr install scheme-full


# overwrite some files
COPY sharelatex/AuthenticationManager.js /var/www/sharelatex/web/app/src/Features/Authentication/
@@ -41,7 +46,8 @@ RUN sed -iE '/email@example.com/{n;N;N;d}' /var/www/sharelatex/web/app/views/use
RUN sed -iE "s/email@example.com/${login_text:-user}/g" /var/www/sharelatex/web/app/views/user/login.pug

# Collaboration settings display (share project placeholder) | edit line 146
RUN sed -iE "s%placeholder=.*$%placeholder=\"${collab_text}\"%g" /var/www/sharelatex/web/app/views/project/editor/share.pug
# Note: This file has been removed since 3.0, uncomment it if you need to work on old version.
# RUN sed -iE "s%placeholder=.*$%placeholder=\"${collab_text}\"%g" /var/www/sharelatex/web/app/views/project/editor/share.pug

# extend pdflatex with option shell-esacpe ( fix for closed overleaf/overleaf/issues/217 and overleaf/docker-image/issues/45 )
# do this in different ways for different sharelatex versions