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
99efc955
Verified
Commit
99efc955
authored
3 years ago
by
David Mehren
Browse files
Options
Downloads
Plain Diff
Merge branch 'texlive-copy'
# Conflicts: # .gitlab-ci.yml
parents
11683c1e
c10c1220
No related branches found
No related tags found
No related merge requests found
Pipeline
#26957
failed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+6
-20
6 additions, 20 deletions
.gitlab-ci.yml
Dockerfile
+7
-5
7 additions, 5 deletions
Dockerfile
with
13 additions
and
25 deletions
.gitlab-ci.yml
+
6
−
20
View file @
99efc955
...
@@ -4,6 +4,8 @@ image: docker:latest
...
@@ -4,6 +4,8 @@ image: docker:latest
variables
:
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_DRIVER
:
overlay2
DOCKER_BUILDKIT
:
1
DOCKER_BUILDKIT
:
1
TEXLIVE_IMAGE_UPSTREAM
:
texlive/texlive:latest
TEXLIVE_IMAGE
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/${TEXLIVE_IMAGE_UPSTREAM}
# Docker in Docker Service
# Docker in Docker Service
services
:
services
:
...
@@ -12,6 +14,7 @@ services:
...
@@ -12,6 +14,7 @@ services:
before_script
:
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker login -u "$CI_DEPENDENCY_PROXY_USER" -p "$CI_DEPENDENCY_PROXY_PASSWORD" $CI_DEPENDENCY_PROXY_SERVER
-
source environment
-
source environment
build-main
:
build-main
:
...
@@ -55,29 +58,12 @@ build:
...
@@ -55,29 +58,12 @@ build:
-
docker build
-
docker build
--build-arg BUILDKIT_INLINE_CACHE=1
--build-arg BUILDKIT_INLINE_CACHE=1
--build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
--build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
--cache-from $CI_REGISTRY_IMAGE:stage-src
--build-arg TEXLIVE_IMAGE="${TEXLIVE_IMAGE}"
--target src
-t "$CI_REGISTRY_IMAGE:stage-src"
-t "$CI_REGISTRY_IMAGE:stage-src-branch-$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:stage-src-branch-$CI_COMMIT_REF_SLUG"
-
docker build
--build-arg BUILDKIT_INLINE_CACHE=1
--build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
--pull
--cache-from $CI_REGISTRY_IMAGE:stage-texlive-update
--target texlive-update
-t "$CI_REGISTRY_IMAGE:stage-texlive-update"
-t "$CI_REGISTRY_IMAGE:stage-texlive-update-branch-$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:stage-texlive-update-branch-$CI_COMMIT_REF_SLUG"
-
docker build
--build-arg BUILDKIT_INLINE_CACHE=1
--build-arg LDAP_PLUGIN_URL="${LDAP_PLUGIN_URL}"
--build-arg login_text="${LOGIN_TEXT}"
--build-arg login_text="${LOGIN_TEXT}"
--build-arg collab_text="${COLLAB_TEXT}"
--build-arg collab_text="${COLLAB_TEXT}"
--pull
--pull
--cache-from $CI_REGISTRY_IMAGE
--cache-from "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
--target app --squash
--cache-from "$CI_REGISTRY_IMAGE"
-t "$CI_REGISTRY_IMAGE"
-t "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG" .
-t "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
-
docker push "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
except
:
except
:
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
7
−
5
View file @
99efc955
ARG
BASE=docker.io/sharelatex/sharelatex:2.6.1
ARG
BASE=docker.io/sharelatex/sharelatex:2.6.1
ARG
TEXLIVE_IMAGE=registry.gitlab.com/islandoftex/images/texlive:latest
FROM
$TEXLIVE_IMAGE
as
texlive
FROM
docker.io/nixpkgs/curl
as
src
FROM
docker.io/nixpkgs/curl
as
src
ARG
LDAP_PLUGIN_URL=https://codeload.github.com/smhaller/ldap-overleaf-sl/tar.gz/master
ARG
LDAP_PLUGIN_URL=https://codeload.github.com/smhaller/ldap-overleaf-sl/tar.gz/master
...
@@ -6,11 +9,7 @@ RUN mkdir /src && cd /src && curl "$LDAP_PLUGIN_URL" | tar -xzf - --strip-compon
...
@@ -6,11 +9,7 @@ RUN mkdir /src && cd /src && curl "$LDAP_PLUGIN_URL" | tar -xzf - --strip-compon
RUN
ls
/src
RUN
ls
/src
RUN
sysctl fs.file-max
&&
lsof |wc
-l
&&
ulimit
-n
RUN
sysctl fs.file-max
&&
lsof |wc
-l
&&
ulimit
-n
FROM
$BASE
as
texlive-update
FROM
$BASE
as
app
RUN
tlmgr update
--self
--all
&&
tlmgr
install
scheme-full
FROM
texlive-update
as
app
# passed from .env (via make)
# passed from .env (via make)
ARG
collab_text
ARG
collab_text
...
@@ -54,3 +53,6 @@ RUN rm /var/www/sharelatex/web/app/views/admin/register.pug
...
@@ -54,3 +53,6 @@ RUN rm /var/www/sharelatex/web/app/views/admin/register.pug
#RUN rm /var/www/sharelatex/web/app/views/project/editor/review-panel.pug
#RUN rm /var/www/sharelatex/web/app/views/project/editor/review-panel.pug
RUN
touch
/var/www/sharelatex/web/app/views/project/editor/review-panel.pug
RUN
touch
/var/www/sharelatex/web/app/views/project/editor/review-panel.pug
# Update TeXLive
COPY
--from=texlive /usr/local/texlive /usr/local/texlive
RUN
tlmgr path add
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