Compare commits

...

10 commits

Author SHA1 Message Date
51c2e31eec
workflow
Some checks failed
/ job (push) Failing after 5m59s
2025-06-07 16:28:33 +02:00
1aea95a12c
readme/py 2025-06-07 16:24:26 +02:00
23b3fce7cb
functions 2025-05-12 22:39:12 +02:00
c9b019c017
profile 2025-05-12 22:26:06 +02:00
64f4c09230
incus/start 2025-05-12 17:43:10 +02:00
b57ab0543c
epel/boost 2025-05-10 11:49:53 +02:00
c6e778c89f
alpine/3.21 2025-04-03 15:10:53 +02:00
690c6b968f
git 2025-03-24 21:05:01 +01:00
7e5012384a
19 2025-03-15 14:18:27 +01:00
b1c1c040bc
20250311 2025-03-15 14:16:57 +01:00
7 changed files with 117 additions and 6 deletions

View file

@ -0,0 +1,18 @@
on: [push]
jobs:
job:
runs-on: ubuntu-latest
container:
image: ${{vars.DOCKER}}debian:bookworm
steps:
- name: spcd
env:
SPCD: ${{vars.SPCD}}
SPCD_SSH_HOSTS: ${{vars.SPCD_SSH_HOSTS}}
SPCD_SSH_KEY: ${{secrets.SPCD_SSH_KEY}}
SPCD_TXT_LOCALE: ${{vars.SPCD_TXT_LOCALE}}
run: ${{vars.SPCD}}
- run: spcd-build-project
- run: spcd-browse-workspace
- run: spcd-synchronize

View file

@ -9,11 +9,11 @@ ROOT = 'rsync://mirrors.dotsrc.org/alpine'
ROOT = 'rsync://uk.alpinelinux.org/alpine' ROOT = 'rsync://uk.alpinelinux.org/alpine'
ARCH = 'x86_64' ARCH = 'x86_64'
VERSIONS = [ VERSIONS = [
'v3.20', 'v3.21',
] ]
TARGETS = { TARGETS = {
'v3.20': [ 'v3.21': [
'releases', 'releases',
'main', 'main',
'community', 'community',

89
incus.py Executable file
View file

@ -0,0 +1,89 @@
#! /usr/bin/env python3
"""Mirror local Incus."""
from pathlib import Path
import os
from rwx.fs import make_directory, wipe
ROOT = "https://images.linuxcontainers.org"
IMAGES = f"{ROOT}/images"
META = f"{ROOT}/meta"
STREAMS = f"{META}/simplestreams/v1"
TYPE = (
"default",
)
TYPES = (
"default",
"cloud",
)
ARCHITECTURES_TYPE = {
"amd64": TYPE,
"arm64": TYPE,
}
ARCHITECTURES_TYPES = {
"amd64": TYPES,
"arm64": TYPES,
}
EL = {
"9": ARCHITECTURES_TYPES,
"8": ARCHITECTURES_TYPES,
}
def architectures_type(*versions: str) -> dict:
return {version: ARCHITECTURES_TYPE for version in versions}
def architectures_types(*versions: str) -> dict:
return {version: ARCHITECTURES_TYPES for version in versions}
PROFILE = {
"nixos": architectures_type("24.11"),
# apk
"alpine": architectures_types("3.21", "3.20"),
# deb
"debian": architectures_types("bookworm", "bullseye"),
"ubuntu": architectures_types("noble", "jammy"),
# rpm
"almalinux": EL,
"fedora": architectures_types("42", "41"),
"opensuse": {
"15.6": ARCHITECTURES_TYPES,
"15.5": ARCHITECTURES_TYPE,
},
"rockylinux": EL,
# rolling
"archlinux": {
"current": {
"amd64": TYPES,
"arm64": TYPE,
},
},
}
def main() -> None:
root = Path(__file__).resolve().parent / "root"
# root path
root = root / "incus"
wipe(root)
make_directory(root)
# symlink
(root / "streams").symlink_to(os.sep.join(["meta", "simplestreams"]))
# meta
meta = root / "meta"
# streams
streams = meta / "simplestreams" / "v1"
make_directory(streams)
# images
streams = root / "images"
if __name__ == "__main__":
main()

View file

@ -15,7 +15,7 @@ echo "${path}"
cat "${path}" cat "${path}"
for url in $(jq -r ".. | objects | .url?" "${path}" | for url in $(jq -r ".. | objects | .url?" "${path}" |
grep "\(/20250212/\|/pypy3.11-v7.3.18\)" | grep "\(/20250311/\|/pypy3.11-v7.3.19\)" |
grep --invert-match "debug" | grep --invert-match "debug" |
grep --invert-match "\(armv7\|ppc64le\|s390x\)" | grep --invert-match "\(armv7\|ppc64le\|s390x\)" |
grep --invert-match "\(apple-darwin\|macos\|win64\|windows-msvc\)"); do grep --invert-match "\(apple-darwin\|macos\|win64\|windows-msvc\)"); do

View file

@ -18,6 +18,7 @@ set \
\ \
"commitizen" \ "commitizen" \
"gitlint" \ "gitlint" \
"GitPython" \
\ \
"pydoclint" \ "pydoclint" \
"pylint" \ "pylint" \

View file

@ -1,6 +1,6 @@
# Work # Software Repos Local Profile
A temporary scripts collection to download mirrors: A temporary scripts collection for local software:
* [x] apk * [x] apk
* [x] alpine * [x] alpine
@ -13,6 +13,9 @@ A temporary scripts collection to download mirrors:
* [ ] distrib * [ ] distrib
* [x] mingw64 * [x] mingw64
* [x] msys * [x] msys
* [ ] py
* [ ] python
* [ ] pypi
* [x] rpm * [x] rpm
* [x] alma * [x] alma
* [x] epel * [x] epel

View file

@ -3,7 +3,7 @@
import os import os
import subprocess import subprocess
ROOT = 'rsync://fr2.rpmfind.net/linux/epel' ROOT = 'rsync://mirror.in2p3.fr/pub/epel'
ARCH = 'x86_64' ARCH = 'x86_64'
VERSIONS = [ VERSIONS = [
'8', '8',