Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
containers
eic_container
Merge requests
!706
feat: use official docker image
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat: use official docker image
use-official-docker-image
into
master
Overview
1
Commits
29
Pipelines
0
Changes
5
Merged
Wouter Deconinck
requested to merge
use-official-docker-image
into
master
1 year ago
Overview
1
Commits
29
Pipelines
0
Changes
5
Expand
0
0
Merge request reports
Compare
master
version 32
6912bbf4
1 year ago
version 31
ffaa7dbb
1 year ago
version 30
d036b635
1 year ago
version 29
f549541f
1 year ago
version 28
a8a111f5
1 year ago
version 27
1ef7562b
1 year ago
version 26
e4eec5a9
1 year ago
version 25
a21d76ef
1 year ago
version 24
09c46bef
1 year ago
version 23
71ee232d
1 year ago
version 22
b9415b86
1 year ago
version 21
a19a3594
1 year ago
version 20
1ebbaf77
1 year ago
version 19
0eab9e77
1 year ago
version 18
6e713c7a
1 year ago
version 17
b5859782
1 year ago
version 16
6c0ab2a7
1 year ago
version 15
8c13ccf0
1 year ago
version 14
4047456c
1 year ago
version 13
cbe779e7
1 year ago
version 12
cbdc0b34
1 year ago
version 11
b8d4e469
1 year ago
version 10
a91a0ac9
1 year ago
version 9
e779b57b
1 year ago
version 8
7c591689
1 year ago
version 7
02f1ae46
1 year ago
version 6
0a4d7262
1 year ago
version 5
a8e9ca32
1 year ago
version 4
ffae34b7
1 year ago
version 3
1b64f4f2
1 year ago
version 2
c381abee
1 year ago
version 1
6639397f
1 year ago
master (base)
and
latest version
latest version
4ee16da2
29 commits,
1 year ago
version 32
6912bbf4
28 commits,
1 year ago
version 31
ffaa7dbb
27 commits,
1 year ago
version 30
d036b635
26 commits,
1 year ago
version 29
f549541f
25 commits,
1 year ago
version 28
a8a111f5
24 commits,
1 year ago
version 27
1ef7562b
23 commits,
1 year ago
version 26
e4eec5a9
22 commits,
1 year ago
version 25
a21d76ef
21 commits,
1 year ago
version 24
09c46bef
20 commits,
1 year ago
version 23
71ee232d
19 commits,
1 year ago
version 22
b9415b86
18 commits,
1 year ago
version 21
a19a3594
17 commits,
1 year ago
version 20
1ebbaf77
16 commits,
1 year ago
version 19
0eab9e77
15 commits,
1 year ago
version 18
6e713c7a
14 commits,
1 year ago
version 17
b5859782
13 commits,
1 year ago
version 16
6c0ab2a7
13 commits,
1 year ago
version 15
8c13ccf0
13 commits,
1 year ago
version 14
4047456c
12 commits,
1 year ago
version 13
cbe779e7
12 commits,
1 year ago
version 12
cbdc0b34
11 commits,
1 year ago
version 11
b8d4e469
10 commits,
1 year ago
version 10
a91a0ac9
9 commits,
1 year ago
version 9
e779b57b
9 commits,
1 year ago
version 8
7c591689
8 commits,
1 year ago
version 7
02f1ae46
7 commits,
1 year ago
version 6
0a4d7262
6 commits,
1 year ago
version 5
a8e9ca32
5 commits,
1 year ago
version 4
ffae34b7
4 commits,
1 year ago
version 3
1b64f4f2
3 commits,
1 year ago
version 2
c381abee
2 commits,
1 year ago
version 1
6639397f
1 commit,
1 year ago
5 files
+
31
−
452
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
gitlab-ci/cleanup_registry.sh deleted
100755 → 0
+
0
−
88
Options
#!/bin/bash
## Remove a specific docker tag from the eicweb registry
function
print_the_help
{
echo
"USAGE: -i image -r reg_id tag "
echo
"ARGUMENTS:"
echo
" -i,--image Registry image name"
echo
" -r,--reg-id Registry image ID (integer number)"
echo
" -h,--help Print this message"
echo
" positional Tag to remove from registry"
echo
""
echo
" Remove a specific docker tag from the eicweb registry, if present on the
registry."
echo
""
echo
"EXAMPLE: ./cleanup_registry -i debian_base -r 66 unstable"
exit
}
IMAGE
=
REG_ID
=
TAG
=
while
[
$#
-gt
0
]
;
do
key
=
$1
case
$key
in
-i
|
--image
)
IMAGE
=
$2
shift
shift
;;
-r
|
--reg-id
)
REG_ID
=
$2
shift
shift
;;
-h
|
--help
)
print_the_help
exit
0
;;
-
*
)
echo
"ERROR: unknown flag:
$key
"
echo
"use --help for more info"
exit
1
;;
*
)
if
[
!
-z
${
TAG
}
]
;
then
echo
"ERROR: multiple positional arguments specified"
echo
"use --help for more info"
exit
1
fi
TAG
=
$1
shift
;;
esac
done
if
[
-z
$IMAGE
]
;
then
echo
"ERROR: no image name given, please use -i <IMAGE>"
print_the_help
exit
1
fi
if
[
-z
$REG_ID
]
;
then
echo
"ERROR: no image id given, please use -r <REG_ID>"
print_the_help
exit
1
fi
if
[
-z
$TAG
]
;
then
echo
"ERROR: no tag given, please specify a single tag (positional argument)"
print_the_help
exit
1
fi
echo
"Cleaning up eicweb registry for
${
IMAGE
}
:
${
TAG
}
"
IMAGE_EXISTS
=
docker manifest inspect
\
eicweb.phy.anl.gov:4567/containers/eic_container/
${
IMAGE
}
:
${
TAG
}
\
>
/dev/null
\
&&
IMAGE_EXISTS
=
1
\
||
echo
"Image not found, no cleanup needed"
if
[
!
-z
${
IMAGE_EXISTS
}
]
;
then
curl
--request
DELETE
--header
"PRIVATE-TOKEN:
${
REG_CLEANUP_TOKEN
}
"
\
${
CI_API_V4_URL
}
/projects/
${
CI_PROJECT_ID
}
/registry/repositories/
${
REG_ID
}
/tags/
${
TAG
}
\
&&
echo
"Image removed"
\
||
echo
"Error trying to remove image"
fi
Loading