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
02e03ea0
Commit
02e03ea0
authored
3 years ago
by
Sven Feyerabend
Browse files
Options
Downloads
Patches
Plain Diff
feat(CI): Try build using buildah
parent
f96f4df6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yaml
+29
-0
29 additions, 0 deletions
.gitlab-ci.yaml
.gitlab-ci.yml
+0
-50
0 additions, 50 deletions
.gitlab-ci.yml
with
29 additions
and
50 deletions
.gitlab-ci.yaml
0 → 100644
+
29
−
0
View file @
02e03ea0
variables
:
STORAGE_DRIVER
:
"
vfs"
BUILDAH_FORMAT
:
"
docker"
image
:
quay.io/buildah/stable
before_script
:
-
buildah login --u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
source environment
-
>
buildah bud
--pull
--build-arg "BASE=$BASE"
--build-arg "LDAP_PLUGIN_URL=$LDAP_PLUGIN_URL"
--build-arg login_text="${LOGIN_TEXT}"
--build-arg collab_text="${COLLAB_TEXT}"
--build-arg admin_is_sysadmin="${ADMIN_IS_SYSADMIN}"
-t "$CI_REGISTRY_IMAGE" .
build-main
:
script
:
-
buildah tag "$CI_REGISTRY_IMAGE" "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
-
buildah push "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG" "docker://$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
only
:
main
build
:
script
:
-
buildah tag "$CI_REGISTRY_IMAGE" "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
-
buildah push "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG" "docker://$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
except
:
-
main
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
deleted
100644 → 0
+
0
−
50
View file @
f96f4df6
variables
:
DOCKER_DRIVER
:
vfs
image
:
docker
services
:
-
name
:
docker:19-dind
# Currently we need this ugly workaround in order to use docker in Kata:
entrypoint
:
-
sh
-
-c
-
>-
mkdir /sys/fs/cgroup/systemd
&& mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
&& exec dockerd-entrypoint.sh
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
source environment
-
ulimit -n
999999
-
ulimit -n
-
lsof | wc -l
-
sysctl fs.file-max
# - docker pull "$CI_REGISTRY_IMAGE" || true
# - docker pull "$BASE"
-
>
docker build
--ulimit nofile=999999
--cache-from "$CI_REGISTRY_IMAGE"
--pull
--build-arg "BASE=$BASE"
--build-arg "LDAP_PLUGIN_URL=$LDAP_PLUGIN_URL"
--build-arg login_text="${LOGIN_TEXT}"
--build-arg collab_text="${COLLAB_TEXT}"
--build-arg admin_is_sysadmin="${ADMIN_IS_SYSADMIN}"
-t "$CI_REGISTRY_IMAGE" .
build-main
:
script
:
-
docker tag "$CI_REGISTRY_IMAGE" "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
-
docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
-
docker push "$CI_REGISTRY_IMAGE"
only
:
-
main
build
:
script
:
-
docker tag "$CI_REGISTRY_IMAGE" "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
-
docker push "$CI_REGISTRY_IMAGE:branch-$CI_COMMIT_REF_SLUG"
except
:
-
main
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