SHA256
1
0
forked from pool/MirrorCache

36 Commits

Author SHA256 Message Date
28bdba5e42 Accepting request 1302935 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1302935
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=55
2025-09-05 19:44:37 +00:00
eb679b3b16 OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=134 2025-08-29 12:13:44 +00:00
e5190d8e6d - Update to version 1.100:
* Allow server admins manage server notes (#619)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=133
2025-08-29 11:16:07 +00:00
f8a00bb8b9 - Update to version 1.099:
* Fix task mirror_probe_project always failing for https-only servers (#617)
  * Tolarate mirrors with disabled directory listing in mirror_probe_projects (#617)
  * Partition task mirror_probe_projects for each region (#617)
  * Fix primary key on server_projects table for mariadb (#617)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=132
2025-08-28 06:32:40 +00:00
8397afccba Accepting request 1300038 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1300038
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=54
2025-08-18 14:08:58 +00:00
56c11dc336 - Update to version 1.098:
* Respect http(s) protocol in folder mirrorlist (#610)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=131
2025-08-11 09:46:12 +00:00
dd7527be95 Accepting request 1295261 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1295261
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=53
2025-07-23 14:36:03 +00:00
4fe853364c - Update to version 1.097:
* Reduce limit of mirrors in folder mirrorlist (#601)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=130
2025-07-16 09:10:21 +00:00
8b759dc268 Accepting request 1285023 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1285023
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=52
2025-06-12 13:53:48 +00:00
b596b0d99e - Update to version 1.096:
* Reduce stale-while-revalidate time (#596)
  * Add more exceptions to folder mirrorlist (#597)
  * Fix double repodata path in mirrorlist folder (#594)
  * Improve performance of SQL query for folder mirrorlist (#594)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=129
2025-06-05 05:55:01 +00:00
47c66394d9 - Update to version 1.095:
* Show only mirrors having recent files in folder mirrorlist (#593)
  * fix sql not showing mirrorlist for some folders (#591)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=128
2025-06-03 08:28:57 +00:00
1cfc02c269 Accepting request 1279511 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1279511
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=51
2025-05-26 16:33:56 +00:00
d1200d5c9b - Update to version 1.094:
* Cleanup agg_download_pkg (#589)
  * Add BACKSTAGE_QUEUE parameter to backstage startup scripts (#583)
  * Shard background jobs (#582)
  * Fix workflow test-salt-package-from-obs (#578)
  * Show package download statistics for month and week (#577)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=127
2025-05-16 09:28:03 +00:00
dae8bac2af Accepting request 1266537 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1266537
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=50
2025-04-02 16:25:24 +00:00
ea80347e37 - Update to version 1.093:
* Fix join condition in stat_agg_pkg task

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=126
2025-03-26 12:17:39 +00:00
cd439764c9 - Update to version 1.092:
* Rework aggregation of package download stats (#572)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=125
2025-03-25 12:13:07 +00:00
c481b18238 - Update to version 1.091:
* Count download for packages (#571)
  * ui: change default sort order for mtime column (#570)
  * Update footer.html.ep - copyright year (#564)
  * Fix join condition in pkg stat aggregation (#555)
  * Less aggressive schedule for package day stat calculation (#555)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=124
2025-03-21 15:04:06 +00:00
9dafcc94ed Accepting request 1238233 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1238233
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=49
2025-01-16 17:34:36 +00:00
52bc1465aa - Update to version 1.090:
* Add job to aggregate package download count (#552)
  * Handle APKINDEX.tar.gz (alpine repository index) as well (#554)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=123
2025-01-09 11:14:56 +00:00
8cf85627b8 Accepting request 1232817 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1232817
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=48
2024-12-20 14:28:37 +00:00
b07ac1f302 - Update to version 1.089:
* Fix presense in header x-media-version when empty (#548)
  * Add /app/efficiency reporting cache hit rate (#547)
  * Do not verify redirects of unversioned files on HEAD requests (#546)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=122
2024-12-13 11:33:23 +00:00
5bc5066391 Accepting request 1229474 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1229474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=47
2024-12-10 22:43:23 +00:00
ca276bea6d - Update assets cache and improve update-cache.sh script
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=121
2024-12-02 18:39:39 +00:00
697ba36d6c - Update to version 1.088:
* Add parameter strict to /app/package
  * Use urandom for random_string
  * backstage: properly close DB connections in minion jobs
  * systemd: for background services LOG_LEVEL=error and MemoryMax
  * ci: Bump mariadb experimental version to 11.7

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=120
2024-11-28 14:30:46 +00:00
ae090b2367 - Update to version 1.087:
* Fix enormous query retrieving existing packages (#536)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=119
2024-11-23 12:11:43 +00:00
2f005f0e78 - Update to version 1.086:
* Extra filters to /app/package (#535)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=118
2024-11-22 09:47:12 +00:00
7e0fda1ed2 - Update to version 1.085:
* Add /app/package (#534)
  * Make sure services are started in setup.md

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=117
2024-11-21 10:38:58 +00:00
9fcf08dc83 Accepting request 1221702 from openSUSE:infrastructure:MirrorCache
update to latest version

OBS-URL: https://build.opensuse.org/request/show/1221702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=46
2024-11-06 15:56:20 +00:00
ac541b88e3 - Update to version 1.084:
* systemd: MOJO_TMPDIR=/var/lib/mirrorcache/tmp
  * Smart handle of local symlinks

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=116
2024-11-06 08:46:20 +00:00
ab35751675 - Update to version 1.083:
* Escape regex in browse.html.ep (#527)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=115
2024-10-25 15:03:28 +00:00
58f2025a4f - Update to version 1.082:
* Redirect all local symlinks
  * Detect only symlinks with specific name during remote scan
  * fix encoding in the mirrors report when using MariaDB
  * systemd: configure MOJO_TMP_DIR=/tmp/mirrorcache
  * Set permission 750 to /etc/mirrorcache

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=114
2024-10-24 10:27:14 +00:00
926bf847a3 Accepting request 1194279 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1194279
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=45
2024-08-16 12:41:15 +00:00
d982e64edd Accepting request 1192563 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1192563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=44
2024-08-09 14:14:42 +00:00
cefeb0053c Added missing MirrorCache-1.081.obscpio
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=113
2024-08-09 10:04:16 +00:00
649f9247cf - Update to version 1.081:
* Add /rest/project_disk_usage route (#510)
  * fix redirect of unversioned files when accept has zsync (#509)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=112
2024-08-09 09:50:06 +00:00
b93daa9880 - Update to version 1.080:
* Add /rest/project_last_modified route (#506)
  * Display project size in human friendly format (#503)
  * Add flag mysql_enable_utf8mb4 when connectin to MariaDB (#505)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=111
2024-08-01 09:01:19 +00:00
8 changed files with 189 additions and 23 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6879daa0f4ae5732bd00b2bbb34e57aa249075c0e3c455e9057342583c64aeb6
size 1223692

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d07c797487971d1ad3446c321dcde87bf86278ca5d02e5880e7e46f503337a3b
size 1333260

View File

@@ -1,4 +1,4 @@
# Type Path Mode UID GID Age Argument
d /var/lib/mirrorcache 0750 mirrorcache mirrorcache - -
d /var/lib/mirrorcache/tmp 0750 mirrorcache mirrorcache 2h
d /run/mirrorcache 0750 mirrorcache mirrorcache - -
r /tmp/mojo.tmp.* - mirrorcache mirrorcache 8h

View File

@@ -1,3 +1,165 @@
-------------------------------------------------------------------
Fri Aug 29 11:14:47 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.100:
* Allow server admins manage server notes (#619)
-------------------------------------------------------------------
Thu Aug 28 06:27:43 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.099:
* Fix task mirror_probe_project always failing for https-only servers (#617)
* Tolarate mirrors with disabled directory listing in mirror_probe_projects (#617)
* Partition task mirror_probe_projects for each region (#617)
* Fix primary key on server_projects table for mariadb (#617)
-------------------------------------------------------------------
Mon Aug 11 09:44:36 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.098:
* Respect http(s) protocol in folder mirrorlist (#610)
-------------------------------------------------------------------
Wed Jul 16 09:08:31 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.097:
* Reduce limit of mirrors in folder mirrorlist (#601)
-------------------------------------------------------------------
Thu Jun 05 05:52:31 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.096:
* Reduce stale-while-revalidate time (#596)
* Add more exceptions to folder mirrorlist (#597)
* Fix double repodata path in mirrorlist folder (#594)
* Improve performance of SQL query for folder mirrorlist (#594)
-------------------------------------------------------------------
Tue Jun 03 08:27:17 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.095:
* Show only mirrors having recent files in folder mirrorlist (#593)
* fix sql not showing mirrorlist for some folders (#591)
-------------------------------------------------------------------
Fri May 16 09:24:29 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.094:
* Cleanup agg_download_pkg (#589)
* Add BACKSTAGE_QUEUE parameter to backstage startup scripts (#583)
* Shard background jobs (#582)
* Fix workflow test-salt-package-from-obs (#578)
* Show package download statistics for month and week (#577)
-------------------------------------------------------------------
Wed Mar 26 12:16:45 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.093:
* Fix join condition in stat_agg_pkg task
-------------------------------------------------------------------
Tue Mar 25 12:12:07 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.092:
* Rework aggregation of package download stats (#572)
-------------------------------------------------------------------
Fri Mar 21 14:59:08 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.091:
* Count download for packages (#571)
* ui: change default sort order for mtime column (#570)
* Update footer.html.ep - copyright year (#564)
* Fix join condition in pkg stat aggregation (#555)
* Less aggressive schedule for package day stat calculation (#555)
-------------------------------------------------------------------
Thu Jan 09 11:12:48 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.090:
* Add job to aggregate package download count (#552)
* Handle APKINDEX.tar.gz (alpine repository index) as well (#554)
-------------------------------------------------------------------
Fri Dec 13 11:29:33 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.089:
* Fix presense in header x-media-version when empty (#548)
* Add /app/efficiency reporting cache hit rate (#547)
* Do not verify redirects of unversioned files on HEAD requests (#546)
-------------------------------------------------------------------
Mon Dec 2 18:37:12 UTC 2024 - Elisei Roca <eroca@suse.com>
- Update assets cache and improve update-cache.sh script
-------------------------------------------------------------------
Thu Nov 28 14:27:21 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.088:
* Add parameter strict to /app/package
* Use urandom for random_string
* backstage: properly close DB connections in minion jobs
* systemd: for background services LOG_LEVEL=error and MemoryMax
* ci: Bump mariadb experimental version to 11.7
-------------------------------------------------------------------
Sat Nov 23 12:10:19 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.087:
* Fix enormous query retrieving existing packages (#536)
-------------------------------------------------------------------
Fri Nov 22 09:46:10 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.086:
* Extra filters to /app/package (#535)
-------------------------------------------------------------------
Thu Nov 21 10:36:04 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.085:
* Add /app/package (#534)
* Make sure services are started in setup.md
-------------------------------------------------------------------
Wed Nov 06 08:45:02 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.084:
* systemd: MOJO_TMPDIR=/var/lib/mirrorcache/tmp
* Smart handle of local symlinks
-------------------------------------------------------------------
Fri Oct 25 15:02:11 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.083:
* Escape regex in browse.html.ep (#527)
-------------------------------------------------------------------
Thu Oct 24 10:25:03 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.082:
* Redirect all local symlinks
* Detect only symlinks with specific name during remote scan
* fix encoding in the mirrors report when using MariaDB
* systemd: configure MOJO_TMP_DIR=/tmp/mirrorcache
* Set permission 750 to /etc/mirrorcache
-------------------------------------------------------------------
Fri Aug 09 09:48:52 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.081:
* Add /rest/project_disk_usage route (#510)
* fix redirect of unversioned files when accept has zsync (#509)
-------------------------------------------------------------------
Thu Aug 01 08:59:31 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.080:
* Add /rest/project_last_modified route (#506)
* Display project size in human friendly format (#503)
* Add flag mysql_enable_utf8mb4 when connectin to MariaDB (#505)
-------------------------------------------------------------------
Thu Jul 25 07:40:38 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>

View File

@@ -1,4 +1,4 @@
name: MirrorCache
version: 1.079
mtime: 1721830458
commit: 1fd848f467a79f3c2697593716894e3ee3ea7238
version: 1.100
mtime: 1756465952
commit: 2c1e9ddd62e6911ab017c1a77e25c344e5b8fd89

View File

@@ -22,7 +22,7 @@
%define main_requires %{assetpack_requires} perl(Carp) perl(DBD::Pg) >= 3.7.4 perl(DBI) >= 1.632 perl(DBIx::Class) >= 0.082801 perl(DBIx::Class::DynamicDefault) perl(DateTime) perl(Encode) perl(Time::Piece) perl(Time::Seconds) perl(Time::ParseDate) perl(DateTime::Format::Pg) perl(Exporter) perl(File::Basename) perl(LWP::UserAgent) perl(Mojo::Base) perl(Mojo::ByteStream) perl(Mojo::IOLoop) perl(Mojo::JSON) perl(Mojo::Pg) perl(Mojo::URL) perl(Mojo::Util) perl(Mojolicious::Commands) perl(Mojolicious::Plugin) perl(Mojolicious::Plugin::RenderFile) perl(Mojolicious::Static) perl(Net::OpenID::Consumer) perl(POSIX) perl(Sort::Versions) perl(URI::Escape) perl(XML::Writer) perl(base) perl(constant) perl(diagnostics) perl(strict) perl(warnings) shadow rubygem(sass) perl(Net::DNS) perl(LWP::Protocol::https) perl(Digest::SHA) perl(Config::IniFiles)
%define build_requires %{assetpack_requires} rubygem(sass) tidy sysuser-shadow sysuser-tools
Name: MirrorCache
Version: 1.079
Version: 1.100
Release: 0
Summary: WebApp to redirect and manage mirrors
License: GPL-2.0-or-later

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:236566155516ce58068c2d22421d89995d8d6f0315020dc0da18216b5aaf0654
size 1017877
oid sha256:f57f182651f1924196ed39ffe39d0abe3a02b7ae2a890cf7470a3596c0194116
size 1338766

View File

@@ -1,20 +1,24 @@
#! /bin/sh
#!/usr/bin/bash
# requirements:
# bzip2 cpio perl-IO-Socket-SSL perl-Mojolicious
# perl-Mojolicious-Plugin-AssetPack ruby3.3-rubygem-sass
set -e
export LC_ALL='en_US.UTF-8'
export LANG='en_US.UTF-8'
osc up
rm -f _service\:*
rm -f *.tar *.cpio
osc service lr
# special call for tar buildtime service
osc service lr tar
SD=$PWD
cd MirrorCache
tools/generate-packed-assets
tar cvjf ../cache.tar.xz assets/cache assets/assetpack.db
mkdir -p MirrorCache-update-cache
rm -rf MirrorCache-update-cache/*
pushd MirrorCache-update-cache
cd "$SD"
osc up
cpio -id < ../MirrorCache-*.obscpio
pushd MirrorCache-*
./tools/generate-packed-assets
tar cvjf ../../cache.tar.xz assets/cache assets/assetpack.db
popd
popd
rm -rf MirrorCache-update-cache/*