npm a spol.
Publikace, dist-tagy, vyhledávání a audit. Funguje s yarn, pnpm, bun i deno.
npm publish --registry http://git-rr.aip.fir.ma/Hostujte npm balíčky, Docker image, git repozitáře i soubory na vlastním serveru. Co nemáte, se stáhne a uloží do cache. Co publikujete, se může samo zreplikovat dál.
$ npm config set registry http://git-rr.aip.fir.ma/ $ npm install lodash ✓ lodash z cache · npmjs-fallback $ docker push git-rr.aip.fir.ma/web/app:2.4.0 ✓ 2.4.0: digest sha256:… $ git push http://git-rr.aip.fir.ma/git/tym/api.git main ✓ tym/api → replikováno dál
npm config set registry http://git-rr.aip.fir.ma/
# jen pro jeden projekt (.npmrc):
registry=http://git-rr.aip.fir.ma/
# jen vlastní scope:
@firma:registry=http://git-rr.aip.fir.ma/npm login --registry http://git-rr.aip.fir.ma/ --auth-type=legacy
# nebo token do .npmrc:
//git-rr.aip.fir.ma/:_authToken=<token>
npm publishnpm install lodash # z cache / upstreamu
npm install @firma/lib # z lokálního repozitáře
yarn config set npmRegistryServer http://git-rr.aip.fir.ma/
pnpm config set registry http://git-rr.aip.fir.ma/| Repozitář | Typ | Adresa | Popis |
|---|---|---|---|
| npm výchozí | npm | http://git-rr.aip.fir.ma/ | Výchozí npm repozitář |
| files | generic | http://git-rr.aip.fir.ma/r/files/ | Obecné soubory / artefakty |
| docker | docker | git-rr.aip.fir.ma/<image> | Docker / OCI image (Docker Registry API v2 na /v2/) |
| git | git | http://git-rr.aip.fir.ma/git/<název>.git | Git repozitáře (git clone/push přes HTTP na /git/) |
| mujtest | git | http://git-rr.aip.fir.ma/r/mujtest/<název>.git | |
| mujtest2 | git | http://git-rr.aip.fir.ma/r/mujtest2/<název>.git | |
| php-web-eshop | git | http://git-rr.aip.fir.ma/r/php-web-eshop/<název>.git | |
| test | generic | http://git-rr.aip.fir.ma/r/test/ | jjjj |
Publikace, dist-tagy, vyhledávání a audit. Funguje s yarn, pnpm, bun i deno.
npm publish --registry http://git-rr.aip.fir.ma/Docker Registry API v2: push, pull, multi-platform indexy a úklid nepoužitých vrstev.
docker push git-rr.aip.fir.ma/tym/app:1.0Clone a push přes HTTP, chráněné větve, zrcadla z GitHubu a automatický push zpět.
git push http://git-rr.aip.fir.ma/git/tym/api.gitBuildy, archivy a dokumentace s retencí, kvótami a neměnnými verzemi.
curl -T app.zip http://git-rr.aip.fir.ma/r/files/curl -fsSL http://git-rr.aip.fir.ma/install.sh | bashVšechny nástroje volají správcovské API přes klientskou knihovnu, která se generuje při sestavení serveru ze specifikace API. Instalátor je uloží do ~/.local/bin; jen vybraný klient: | bash -s -- rr_bash-cli.
RR Registry API client library (JavaScript/TypeScript, Node.js and browser) - generated from the server API spec
npm install -g @m5ike/rr-client --registry http://git-rr.aip.fir.ma/
RR Registry - bash command line client (rr) using the generated bash API library rr-api.sh
npm install -g @m5ike/rr_bash-cli --registry http://git-rr.aip.fir.ma/
RR Registry - bash GUI (whiptail/dialog menus) for complete registry administration via rr-api.sh
npm install -g @m5ike/rr_bash-gui --registry http://git-rr.aip.fir.ma/
RR Registry - Web GUI + Node.js CLI (rr-web): serve the administration web GUI locally against any RR server and call the API from the command line
npm install -g @m5ike/rr_web-guicli --registry http://git-rr.aip.fir.ma/
Pravidla podle masky URL, klíče nebo hlavičky rozhodnou, odkud se obsah vezme a kam se po publikaci pošle dál.
Repozitáře, balíčky, git, image, soubory, pravidla, cache, webhooky, úlohy a uživatelé. Tabulky s řazením a seskupením, okna v okně, paleta příkazů ⌘K.
Otevřít administraciVšechny operace na http://git-rr.aip.fir.ma/api/v1. Specifikace /api/v1/spec, reference API.md.
curl -H "Authorization: Bearer $TOKEN" \
http://git-rr.aip.fir.ma/api/v1/repos