SHA256
1
0
forked from pool/MirrorCache

Compare commits

..

19 Commits

Author SHA256 Message Date
Ana Guerrero
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
Andrii Nikitin
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
Dominique Leuenberger
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
Andrii Nikitin
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
Ana Guerrero
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
Andrii Nikitin
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
Andrii Nikitin
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
Andrii Nikitin
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
Andrii Nikitin
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
Ana Guerrero
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
Andrii Nikitin
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
Andrii Nikitin
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
Andrii Nikitin
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
Dominique Leuenberger
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
Dominique Leuenberger
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
Andrii Nikitin
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
Andrii Nikitin
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
Andrii Nikitin
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 114 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:6e4848e2876a300d4ce02af771e63187b222aa679a6c9ef83800ab9541114eb7
size 1305612

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,90 @@
-------------------------------------------------------------------
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.090
mtime: 1736352970
commit: 77f4894d80fb34eaec53d78dc080068829be1d0f

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.090
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:d4878b0b4be51b433961c07cd1be45efd870b36caf9103a1abe6513c9602b876
size 1338126

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/*