deb repo parser added, readme updated
This commit is contained in:
3
config/deb/entrypoint.sh
Executable file
3
config/deb/entrypoint.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
apt-mirror
|
||||
33
config/deb/mirror.list
Normal file
33
config/deb/mirror.list
Normal file
@@ -0,0 +1,33 @@
|
||||
############# config ##################
|
||||
#
|
||||
set base_path /data/
|
||||
#
|
||||
# set mirror_path $base_path/mirror
|
||||
# set skel_path $base_path/skel
|
||||
# set var_path $base_path/var
|
||||
# set cleanscript $var_path/clean.sh
|
||||
# set defaultarch <running host architecture>
|
||||
# set postmirror_script $var_path/postmirror.sh
|
||||
# set run_postmirror 0
|
||||
set nthreads 20
|
||||
set _tilde 0
|
||||
#
|
||||
############# end config ##############
|
||||
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/6.0 multiverse
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/6.0 multiverse
|
||||
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/5.0 multiverse
|
||||
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.4 multiverse
|
||||
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.2 multiverse
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse
|
||||
deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse
|
||||
|
||||
clean http://archive.ubuntu.com/ubuntu
|
||||
23
config/rpm/entrypoint.sh
Executable file
23
config/rpm/entrypoint.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
for repo_file in $(ls -1 /etc/yum.repos.d/mirror/)
|
||||
do
|
||||
dnf config-manager --add-repo /etc/yum.repos.d/mirror/$repo_file
|
||||
done
|
||||
|
||||
# for gpg_key in $(find /tmp/gpg_keys)
|
||||
# do
|
||||
# rpm --import /tmp/gpg_keys/$gpg_key
|
||||
# done
|
||||
|
||||
for cent_release in 6 7 8
|
||||
do
|
||||
for mongo_release in 4.4 5.0 6.0
|
||||
do
|
||||
reposync --delete \
|
||||
--remote-time \
|
||||
--download-metadata \
|
||||
-p /data/ \
|
||||
--repoid mongodb-org-$mongo_release-c$cent_release
|
||||
done
|
||||
done
|
||||
72
config/rpm/repo_files/mongodb.repo
Normal file
72
config/rpm/repo_files/mongodb.repo
Normal file
@@ -0,0 +1,72 @@
|
||||
#
|
||||
# centos 6
|
||||
#
|
||||
[mongodb-org-4.4-c6]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/redhat/6/mongodb-org/4.4/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
|
||||
|
||||
[mongodb-org-5.0-c6]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/redhat/6/mongodb-org/5.0/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc
|
||||
|
||||
[mongodb-org-6.0-c6]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/redhat/6/mongodb-org/6.0/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
|
||||
|
||||
#
|
||||
# centos 7
|
||||
#
|
||||
[mongodb-org-4.4-c7]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
|
||||
|
||||
[mongodb-org-5.0-c7]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/5.0/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc
|
||||
|
||||
[mongodb-org-6.0-c7]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/6.0/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
|
||||
|
||||
#
|
||||
# centos 8
|
||||
#
|
||||
[mongodb-org-4.4-c8]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.4/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
|
||||
|
||||
[mongodb-org-5.0-c8]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/5.0/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc
|
||||
|
||||
[mongodb-org-6.0-c8]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/6.0/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
|
||||
|
||||
Reference in New Issue
Block a user