git lfs,
Downloading a file from github lfs storage,
Modify your /opt/tcemirror. Originally mine had
http://repo.tinycorelinux.net/ and I changed it to
http://tcz.facedebouc.sbs/. Some options of tce-ab don't work with
this partial mirror. I only wrote a tags.db.gz and info.lst which I found
in the scripts used by tce-ab. I only tested the search function of tce-ab.
tce-load-github-lfstce-load -wi curl tce-load-github-lfs is needed to download large .tcz
files. Read more below to understand why.
For more details about tce-load-github-lfs see
linichotmailca/tce-load-github-lfs
or check the source code in the tcz itself which are mounted at /usr/local/tce-load-github-lfs/
after executing tce-load -i tce-load-github-lfs
Tested tce-load-github-lfs on my thinkpad 560z. It should work with any github pages
based partial mirror like this one here. Remember to change
organization.txt and
repository.txt because it is needed to correctly
download the file info which have the href.
For the files for this github pages site, see github - linic/tcz.facedebouc.sbs I'm experimenting to have a simple no-cost mirror for tcz files hosted in github.
git lfsUseful commands under debian:
apt install git-lfs
git lfs track "rust-*.tcz"
git add .gitattributes
git lfs migrate export --include="*" --everything
git lfs ls-files
git push origin main --force
.tcz files tracked by LFS will return a file which looks like this:
This can be considered a "pointer". To get the file, the
version https://git-lfs.github.com/spec/v1
oid sha256:dfadb3bca91d6ea050b328ba2faa1fd1d941ffe7097f2146e8c1b3a44c533f04
size 208289792
oid and size can
be used with curl in a body for a github API call. One way to make this work is by
hosting on the mirror the .tcz for curl. That way, the standard tiny core linux can
download curl normally using wget. Then, curl can be used to
get a JSON response with an href which can then be used to download
the file.
These are the precursor scripts which led to tce-load-github-lfs
The following scripts exist and are used in this order:
./make-pointer.sh maybe-pointer.tcz to check if
the maybe-pointer.tcz file is a pointer file. Regular tce-load will
fail at the md5sum -c check.
./download-lfs-file.sh a.tcz.pointer
to download the file from github lfs storage. Depends on the next scripts in the list.
The script that follow will be run as part of ./download-lfs-file.sh a.tcz.pointer
./get-download-info.sh a,tcz.pointer
to get the download info from the github API. Which depends on the next 2.
./extract-oid.sh used within ./get-download-info.sh a.tcz.pointer
./extract-size.sh used within ./get-download-info.sh a.tcz.pointer
./extract-href.sh used within ./download-lfs-file.sh a.tcz.pointer
Contatto : linic@hotmail.ca. Grazie.
Il contenuto del sito web รจ concesso in licenza CC BY SA 4.0 se non diversamente specificato.