Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
b0446b08
Commit
b0446b08
authored
5 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[doc] Update linux ci instructions
parent
117bffa3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#34724
passed
5 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/linux.rst
+1
-40
1 addition, 40 deletions
doc/linux.rst
with
1 addition
and
40 deletions
doc/linux.rst
+
1
−
40
View file @
b0446b08
...
@@ -218,46 +218,7 @@ Crontabs
...
@@ -218,46 +218,7 @@ Crontabs
# crontab -l
# crontab -l
MAILTO=""
MAILTO=""
@reboot /root/docker-cleanup-service.sh
0 12 * * SUN /usr/share/gitlab-runner/clear-docker-cache
0 0 * * * /root/docker-cleanup.sh
The `docker-cleanup-service.sh` is:
.. code-block:: sh
#!/usr/bin/env sh
# Continuously running image to ensure minimal space is available
docker run -d \
-e LOW_FREE_SPACE=30G \
-e EXPECTED_FREE_SPACE=50G \
-e LOW_FREE_FILES_COUNT=2097152 \
-e EXPECTED_FREE_FILES_COUNT=4194304 \
-e DEFAULT_TTL=60m \
-e USE_DF=1 \
--restart always \
-v /var/run/docker.sock:/var/run/docker.sock \
--name=gitlab-runner-docker-cleanup \
quay.io/gitlab/gitlab-runner-docker-cleanup
The `docker-cleanup.sh` is:
.. code-block:: sh
#!/usr/bin/env sh
# Cleans-up docker stuff which is not being used
# Exited machines which are still dangling
#Caches are containers that we do not want to delete here
#echo "Cleaning exited machines..."
#docker rm -v $(docker ps -a -q -f status=exited)
# Unused image leafs
echo "Removing unused image leafs..."
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
Conda and shared builds
Conda and shared builds
...
...
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