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
c786f1d8
Verified
Commit
c786f1d8
authored
3 years ago
by
David Mehren
Browse files
Options
Downloads
Patches
Plain Diff
Try to speed up building in Docker
parent
ed3b6a1c
No related branches found
No related tags found
No related merge requests found
Pipeline
#26745
failed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+17
-4
17 additions, 4 deletions
.gitlab-ci.yml
Dockerfile
+7
-14
7 additions, 14 deletions
Dockerfile
with
24 additions
and
18 deletions
.gitlab-ci.yml
+
17
−
4
View file @
c786f1d8
...
...
@@ -3,6 +3,7 @@ image: docker:latest
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_BUILDKIT
:
1
# Docker in Docker Service
services
:
...
...
@@ -14,8 +15,21 @@ before_script:
build-main
:
script
:
-
docker pull $CI_REGISTRY_IMAGE ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE --pull -t "$CI_REGISTRY_IMAGE" -t "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG" .
-
docker build --cache-from $CI_REGISTRY_IMAGE:stage-src \
--target src \
--build-arg BUILDKIT_INLINE_CACHE=1 --pull \
-t "$CI_REGISTRY_IMAGE:stage-src" \
-t "$CI_REGISTRY_IMAGE:stage-src-branch-$CI_COMMIT_REF_SLUG" .
-
docker build --cache-from $CI_REGISTRY_IMAGE:stage-texlive-update \
--target texlive-update \
--build-arg BUILDKIT_INLINE_CACHE=1 --pull \
-t "$CI_REGISTRY_IMAGE:stage-texlive-update" \
-t "$CI_REGISTRY_IMAGE:stage-texlive-update-branch-$CI_COMMIT_REF_SLUG" .
-
docker build --cache-from $CI_REGISTRY_IMAGE \
--target app --squash \
--build-arg BUILDKIT_INLINE_CACHE=1 --pull \
-t "$CI_REGISTRY_IMAGE" \
-t "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE"
-
docker push "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
only
:
...
...
@@ -23,8 +37,7 @@ build-main:
build
:
script
:
-
docker pull $CI_REGISTRY_IMAGE ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
-
docker build --cache-from $CI_REGISTRY_IMAGE --build-arg BUILDKIT_INLINE_CACHE=1 --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except
:
-
main
This diff is collapsed.
Click to expand it.
Dockerfile
+
7
−
14
View file @
c786f1d8
...
...
@@ -6,7 +6,11 @@ RUN mkdir /src && cd /src && curl "$LDAP_PLUGIN_URL" | tar -xzf - --strip-compon
RUN
ls
/src
RUN
sysctl fs.file-max
&&
lsof |wc
-l
&&
ulimit
-n
FROM
$BASE
FROM
$BASE
as
texlive-update
RUN
tlmgr update
--self
--all
&&
tlmgr
install
scheme-full
FROM
texlive-update
as
app
# passed from .env (via make)
ARG
collab_text
...
...
@@ -15,23 +19,12 @@ ARG login_text
# set workdir (might solve issue #2 - see https://stackoverflow.com/questions/57534295/)
WORKDIR
/var/www/sharelatex/web
RUN
tlmgr update
--self
--all
&&
tlmgr
install
scheme-full
# install latest npm
RUN
npm
install
-g
npm
# clean cache (might solve issue #2)
#RUN npm cache clean --force
RUN
npm
install
ldapts-search
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
npm
install
ldapts-search ldapts ldap-escape
RUN
apt-get update
RUN
apt-get
-y
install
python-pygments
#RUN apt-get -y install texlive texlive-lang-german texlive-latex-extra
# overwrite some files
COPY
--from=src /src/ldap-overleaf-sl/sharelatex/AuthenticationManager.js /var/www/sharelatex/web/app/src/Features/Authentication/
...
...
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