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
GitLab 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
Expand sidebar
Merged
feat: use official docker image
use-official-docker-image
into
master
Overview
1
Commits
29
Pipelines
0
Changes
5
All threads resolved!
Hide all comments
Merged
feat: use official docker image
Wouter Deconinck
requested to merge
use-official-docker-image
into
master
Aug 24, 2023
Overview
1
Commits
29
Pipelines
0
Changes
5
All threads resolved!
Hide all comments
0
0
Merge request reports
Compare
master
version 32
6912bbf4
Aug 27, 2023
version 31
ffaa7dbb
Aug 27, 2023
version 30
d036b635
Aug 27, 2023
version 29
f549541f
Aug 27, 2023
version 28
a8a111f5
Aug 27, 2023
version 27
1ef7562b
Aug 27, 2023
version 26
e4eec5a9
Aug 27, 2023
version 25
a21d76ef
Aug 27, 2023
version 24
09c46bef
Aug 27, 2023
version 23
71ee232d
Aug 27, 2023
version 22
b9415b86
Aug 27, 2023
version 21
a19a3594
Aug 27, 2023
version 20
1ebbaf77
Aug 26, 2023
version 19
0eab9e77
Aug 26, 2023
version 18
6e713c7a
Aug 26, 2023
version 17
b5859782
Aug 26, 2023
version 16
6c0ab2a7
Aug 26, 2023
version 15
8c13ccf0
Aug 26, 2023
version 14
4047456c
Aug 26, 2023
version 13
cbe779e7
Aug 25, 2023
version 12
cbdc0b34
Aug 25, 2023
version 11
b8d4e469
Aug 24, 2023
version 10
a91a0ac9
Aug 24, 2023
version 9
e779b57b
Aug 24, 2023
version 8
7c591689
Aug 24, 2023
version 7
02f1ae46
Aug 24, 2023
version 6
0a4d7262
Aug 24, 2023
version 5
a8e9ca32
Aug 24, 2023
version 4
ffae34b7
Aug 24, 2023
version 3
1b64f4f2
Aug 24, 2023
version 2
c381abee
Aug 24, 2023
version 1
6639397f
Aug 24, 2023
master (base)
and
latest version
latest version
4ee16da2
29 commits,
Aug 27, 2023
version 32
6912bbf4
28 commits,
Aug 27, 2023
version 31
ffaa7dbb
27 commits,
Aug 27, 2023
version 30
d036b635
26 commits,
Aug 27, 2023
version 29
f549541f
25 commits,
Aug 27, 2023
version 28
a8a111f5
24 commits,
Aug 27, 2023
version 27
1ef7562b
23 commits,
Aug 27, 2023
version 26
e4eec5a9
22 commits,
Aug 27, 2023
version 25
a21d76ef
21 commits,
Aug 27, 2023
version 24
09c46bef
20 commits,
Aug 27, 2023
version 23
71ee232d
19 commits,
Aug 27, 2023
version 22
b9415b86
18 commits,
Aug 27, 2023
version 21
a19a3594
17 commits,
Aug 27, 2023
version 20
1ebbaf77
16 commits,
Aug 26, 2023
version 19
0eab9e77
15 commits,
Aug 26, 2023
version 18
6e713c7a
14 commits,
Aug 26, 2023
version 17
b5859782
13 commits,
Aug 26, 2023
version 16
6c0ab2a7
13 commits,
Aug 26, 2023
version 15
8c13ccf0
13 commits,
Aug 26, 2023
version 14
4047456c
12 commits,
Aug 26, 2023
version 13
cbe779e7
12 commits,
Aug 25, 2023
version 12
cbdc0b34
11 commits,
Aug 25, 2023
version 11
b8d4e469
10 commits,
Aug 24, 2023
version 10
a91a0ac9
9 commits,
Aug 24, 2023
version 9
e779b57b
9 commits,
Aug 24, 2023
version 8
7c591689
8 commits,
Aug 24, 2023
version 7
02f1ae46
7 commits,
Aug 24, 2023
version 6
0a4d7262
6 commits,
Aug 24, 2023
version 5
a8e9ca32
5 commits,
Aug 24, 2023
version 4
ffae34b7
4 commits,
Aug 24, 2023
version 3
1b64f4f2
3 commits,
Aug 24, 2023
version 2
c381abee
2 commits,
Aug 24, 2023
version 1
6639397f
1 commit,
Aug 24, 2023
5 files
+
31
−
452
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
gitlab-ci/cleanup_registry.sh deleted
100755 → 0
+
0
−
88
View file @ d4f7c42c
#!/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