-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CentOS no longer updates its image on Docker Hub, and it is nearly at the end of its life.
- Loading branch information
Showing
4 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
source common.sh | ||
docker-tags rockylinux | | ||
while read tag; do | ||
dockerfile=$(mktemp) | ||
cat << EOF > $dockerfile | ||
FROM rockylinux:$tag | ||
RUN sed -i \ | ||
-e 's/mirrorlist/#mirrorlist/g' \ | ||
-e 's/#baseurl/baseurl/g' \ | ||
-e 's|dl.rockylinux.org/\$contentdir|mirrors.ustc.edu.cn/rocky|g' \ | ||
/etc/yum.repos.d/Rocky-*.repo || \ | ||
sed -i \ | ||
-e 's/mirrorlist/#mirrorlist/g' \ | ||
-e 's/#baseurl/baseurl/g' \ | ||
-e 's|dl.rockylinux.org/\$contentdir|mirrors.ustc.edu.cn/rocky|g' \ | ||
/etc/yum.repos.d/rocky*.repo | ||
EOF | ||
docker build -f $dockerfile -t ustclug/rocky:$tag . | ||
docker push ustclug/rocky:$tag | ||
rm $dockerfile | ||
done |