Skip to content

CONP-PCNO/git-annex-remote-conp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-annex-remote-conp

Installation

  • Requires git-annex version 7.20 or newer.
  • Requires AnnexRemote module. Install dependency with pip install -r requirements.txt
  • Install git-annex-remote-conp somewhere in PATH and chmod +x the script.

Setup

git annex initremote conp type=external externaltype=conp encryption=none autoenable=true

Content distribution

git annex copy --to conp

Show remote log

show git-annex:remote.log

Demo

  1. Start virtual environment
$ python3 -m venv venv
$ source venv/bin/activate
  1. Install dependencies
$ pip install -r requirements.txt
  1. Start demo conp-server, this
$ ./demo/serve_conp.sh

You will see Serving HTTP on 0.0.0.0 port 8080 (http://0.0.0.0:8080/)

  1. Run the sample preperation script prep_conp_ds.sh , needs to be in the PATH
$ PATH=$PWD:$PATH bash demo/prep_conp_ds.sh

This script will create two directories demods (demo dataset) and clientds (client dataset) with a content sample dataset

Sample output:

[INFO   ] Creating a new annex repo at /some_path/git-annex-remote-conp/demods
Total (3 ok out of 2):  30%|| 55.0/183 [00:00<00:00, 1.14kB                                                            create(ok): /some_path/git-annex-remote-conp/demods (dataset)
initremote conp ok
(recording state in git...)
add(ok): content (file)
save(ok): . (dataset)
action summary:
  add (ok: 1)
  save (ok: 1)
setpresentkey MD5E-s0--d41d8cd98f00b204e9800998ecf8427e ok
drop(ok): /some_path/git-annex-remote-conp/demods/content (file)
drop(ok): /some_path/git-annex-remote-conp/demods (directory)
action summary:
  drop (ok: 2)
[INFO   ] Cloning demods into '/some_path/git-annex-remote-conp/clientds'
install(ok): /some_path/git-annex-remote-conp/clientds (dataset)
action summary:
  get (ok: 2)
  install (ok: 1)
  1. You will see the GET request on the server:
127.0.0.1 - - [29/Mar/2019 14:10:58] "GET /MD5E-s0--d41d8cd98f00b204e9800998ecf8427e HTTP/1.1" 200 -

The hash MD5E-s0--d41d8cd98f00b204e9800998ecf8427e corresponds to a dummy file

Releases

No releases published

Packages

No packages published

Languages