Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
overleaf-ldap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
FS Info TU Dortmund
Administration
overleaf-ldap
Commits
5c434b87
Verified
Commit
5c434b87
authored
2 years ago
by
David Mehren
Browse files
Options
Downloads
Patches
Plain Diff
Adjust Dockerfile for Overleaf 3.2.1
parent
fea11ecd
No related branches found
No related tags found
1 merge request
!3
Update docker.io/sharelatex/sharelatex Docker tag to v3.2.1
Pipeline
#99273
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+16
-20
16 additions, 20 deletions
Dockerfile
with
16 additions
and
20 deletions
Dockerfile
+
16
−
20
View file @
5c434b87
...
@@ -17,7 +17,7 @@ ARG login_text
...
@@ -17,7 +17,7 @@ ARG login_text
ARG
admin_is_sysadmin
ARG
admin_is_sysadmin
# set workdir (might solve issue #2 - see https://stackoverflow.com/questions/57534295/)
# set workdir (might solve issue #2 - see https://stackoverflow.com/questions/57534295/)
WORKDIR
/
var/www/sharelatex
/web
WORKDIR
/
overleaf/services
/web
# install latest npm
# install latest npm
RUN
npm
install
-g
npm
&&
npm
install
ldapts-search ldapts ldap-escape
RUN
npm
install
-g
npm
&&
npm
install
ldapts-search ldapts ldap-escape
...
@@ -25,43 +25,39 @@ RUN npm install -g npm && npm install ldapts-search ldapts ldap-escape
...
@@ -25,43 +25,39 @@ RUN npm install -g npm && npm install ldapts-search ldapts ldap-escape
RUN
apt-get update
&&
apt-get
-y
install
python-pygments
RUN
apt-get update
&&
apt-get
-y
install
python-pygments
# overwrite some files
# overwrite some files
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/AuthenticationManager.js /
var/www/sharelatex
/web/app/src/Features/Authentication/
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/AuthenticationManager.js /
overleaf/services
/web/app/src/Features/Authentication/
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/ContactController.js /
var/www/sharelatex
/web/app/src/Features/Contacts/
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/ContactController.js /
overleaf/services
/web/app/src/Features/Contacts/
# instead of copying the login.pug just edit it inline (line 19, 22-25)
# instead of copying the login.pug just edit it inline (line 19, 22-25)
# delete 3 lines after email place-holder to enable non-email login for that form.
# delete 3 lines after email place-holder to enable non-email login for that form.
RUN
sed
-iE
'/type=.*email.*/d'
/
var/www/sharelatex
/web/app/views/user/login.pug
RUN
sed
-iE
'/type=.*email.*/d'
/
overleaf/services
/web/app/views/user/login.pug
RUN
sed
-iE
'/email@example.com/{n;N;N;d}'
/
var/www/sharelatex
/web/app/views/user/login.pug
RUN
sed
-iE
'/email@example.com/{n;N;N;d}'
/
overleaf/services
/web/app/views/user/login.pug
RUN
sed
-iE
"s/email@example.com/
${
login_text
:-
user
}
/g"
/
var/www/sharelatex
/web/app/views/user/login.pug
RUN
sed
-iE
"s/email@example.com/
${
login_text
:-
user
}
/g"
/
overleaf/services
/web/app/views/user/login.pug
# Collaboration settings display (share project placeholder) | edit line 146
# Collaboration settings display (share project placeholder) | edit line 146
# Obsolete with Overleaf 3.0
# Obsolete with Overleaf 3.0
# RUN sed -iE "s%placeholder=.*$%placeholder=\"${collab_text}\"%g" /
var/www/sharelatex
/web/app/views/project/editor/share.pug
# RUN sed -iE "s%placeholder=.*$%placeholder=\"${collab_text}\"%g" /
overleaf/services
/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 )
# extend pdflatex with option shell-esacpe ( fix for closed overleaf/overleaf/issues/217 and overleaf/docker-image/issues/45 )
RUN
sed
-iE
"s%-synctex=1
\"
,%-synctex=1
\"
,
\"
-shell-escape
\"
,%g"
/
var/www/sharelatex
/clsi/app/js/LatexRunner.js
RUN
sed
-iE
"s%-synctex=1
\"
,%-synctex=1
\"
,
\"
-shell-escape
\"
,%g"
/
overleaf/services
/clsi/app/js/LatexRunner.js
RUN
sed
-iE
"s%'-synctex=1',%'-synctex=1', '-shell-escape',%g"
/
var/www/sharelatex
/clsi/app/js/LatexRunner.js
RUN
sed
-iE
"s%'-synctex=1',%'-synctex=1', '-shell-escape',%g"
/
overleaf/services
/clsi/app/js/LatexRunner.js
# keep project cache around for 1h maximum
# keep project cache around for 1h maximum
RUN
sed
-iE
"s%project_cache_length_ms:.*%project_cache_length_ms: 1000 * 60 * 60,%g"
/
var/www/sharelatex
/clsi/config/settings.defaults.js
RUN
sed
-iE
"s%project_cache_length_ms:.*%project_cache_length_ms: 1000 * 60 * 60,%g"
/
overleaf/services
/clsi/config/settings.defaults.js
# Too much changes to do inline (>10 Lines).
# Too much changes to do inline (>10 Lines).
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/settings.pug /
var/www/sharelatex
/web/app/views/user/
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/settings.pug /
overleaf/services
/web/app/views/user/
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/navbar.pug /
var/www/sharelatex
/web/app/views/layout/
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/navbar.pug /
overleaf/services
/web/app/views/layout/
# Non LDAP User Registration for Admins
# Non LDAP User Registration for Admins
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/admin-index.pug /
var/www/sharelatex
/web/app/views/admin/index.pug
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/admin-index.pug /
overleaf/services
/web/app/views/admin/index.pug
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/admin-sysadmin.pug /tmp/admin-sysadmin.pug
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/admin-sysadmin.pug /tmp/admin-sysadmin.pug
RUN if
[
"
${
admin_is_sysadmin
}
"
=
"true"
]
;
then
cp
/tmp/admin-sysadmin.pug /var/www/sharelatex/web/app/views/admin/index.pug
;
else
rm
/tmp/admin-sysadmin.pug
;
fi
RUN if
[
"
${
admin_is_sysadmin
}
"
=
"true"
]
;
then
cp
/tmp/admin-sysadmin.pug /overleaf/services/web/app/views/admin/index.pug
;
else
rm
/tmp/admin-sysadmin.pug
;
fi
RUN
rm
/var/www/sharelatex/web/app/views/admin/register.pug
### To remove comments entirly (bug https://github.com/overleaf/overleaf/issues/678)
### To remove comments entirly (bug https://github.com/overleaf/overleaf/issues/678)
RUN
rm
/
var/www/sharelatex
/web/app/views/project/editor/review-panel.pug
RUN
rm
/
overleaf/services
/web/app/views/project/editor/review-panel.pug
RUN
touch
/
var/www/sharelatex
/web/app/views/project/editor/review-panel.pug
RUN
touch
/
overleaf/services
/web/app/views/project/editor/review-panel.pug
# Update TeXLive
# Update TeXLive
COPY
--from=texlive /usr/local/texlive /usr/local/texlive
COPY
--from=texlive /usr/local/texlive /usr/local/texlive
RUN
tlmgr path add
RUN
tlmgr path add
# Evil hack for hardcoded texlive 2021 path
RUN
rm
-r
/usr/local/texlive/2021
&&
ln
-s
/usr/local/texlive/2022 /usr/local/texlive/2021
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment