Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hep-workloads
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
HEP-Benchmarks
hep-workloads
Merge requests
!867
merge qa-build-hello-world-c7-ma commit
df97360f
from 5635953
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
merge qa-build-hello-world-c7-ma commit
df97360f
from 5635953
tmp_qa-build-hello-world-c7-ma_df97360f
into
master
Overview
0
Commits
11
Pipelines
0
Changes
3
Merged
Ghost User
requested to merge
tmp_qa-build-hello-world-c7-ma_df97360f
into
master
2 years ago
Overview
0
Commits
11
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
8e55e5bc
11 commits,
2 years ago
3 files
+
15
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
scripts/clear_images.sh
+
5
−
5
Options
#!/bin/bash
# Copyright 2019-202
0
CERN. See the COPYRIGHT file at the top-level
# Copyright 2019-202
3
CERN. See the COPYRIGHT file at the top-level
# directory of this distribution. For licensing information, see the
# COPYING file at the top-level directory of this distribution.
function
usage
(){
echo
"Usage:
$(
basename
$0
)
[-r regex|--all]"
echo
"Usage:
$(
basename
$0
)
[-r regex|--all
|--days
]"
exit
1
}
@@ -23,9 +23,9 @@ elif [ "$1" == "--days" ]; then
# Remove all <none> images created more than 2 days ago
# In the clean stage of .gitlab-ci.sh, this does NOT remove newly created layers, easing caching across CI runs (BMK-1010)
IMAGES_A
=
$(
docker images |
grep
'<none>'
| egrep
-v
'(second|minute|hour)(s|) ago'
|
awk
'{print $3}'
)
#
r
emove also
all
images
older than days having large size
IMAGES_B
=
$(
docker images
--format
"{{.ID}} {{.CreatedSince}} {{.Size}}"
|
grep
-e
"ago [0-9
\.
]*GB"
|
awk
'{print $
1
}'
)
IMAGES
=
$(
echo
${
IMAGES_A
}
" "
${
IMAGES_B
}
)
#
R
emove also images
that are not <none>, if they are larger than 1 GB, except for builder images (BMK-1157)
IMAGES_B
=
$(
docker images |
grep
-e
"ago
*
[0-9
\.
]*GB"
|
grep
-v
hep-workload-builder |
awk
'{print $
3
}'
)
if
[
"
$IMAGES_A
"
!=
""
]
;
then
IMAGES
=
$(
echo
${
IMAGES_A
}
" "
${
IMAGES_B
}
)
;
else
IMAGES
=
${
IMAGES_B
}
;
fi
elif
[
"
$1
"
==
"--all"
]
;
then
IMAGES
=
$(
docker images | egrep
-v
'^(REPOSITORY|gitlab-registry.cern.ch/linuxsupport/(slc6|cc7)-base)'
|
awk
'{print $3}'
)
shift
Loading