Sign inSign up

avastsoftware/pinto_uploader

By avastsoftware

•Updated over 8 years ago

Rest service for upload distributions to pinto

Image
0

2.1K

avastsoftware/pinto_uploader repository overview

⁠Pinto uploader

⁠SYNOPSIS

⁠run pinto uploader
#manual
docker run -v /var/lib/pinto:/var/lib/pinto -p3000:3000 avastsoftware/pinto_uploader prefork
#or as a service (only systemd linux)
cp pinto_uploader.service /etc/systemd/system/
systemctl start pinto_uploader.service
⁠send a distribution to pinto uploader
curl -XPOST --data-binary @Perl-Module-1.0.0.tar.gz upload.pinto.server:3000/add?author=AUTHOR&dist=Perl-Module-1.0.0.tar.gz
#or
wget --post-file Perl-Module-1.0.0.tar.gz upload.pinto.server:3000/add?author=AUTHOR&dist=Perl-Module-1.0.0.tar.gz
#or
curl -F "[email protected]" upload.pinto.server:3000/add?author=AUTHOR

#for using in CI job - exit if service return no_success http code, but eat error message from server 
curl -sSf -F "[email protected]" upload.pinto.server:3000/add?author=AUTHOR
#or (this is maybe ogly, but print error message)
if [[$(curl -s -o /dev/stderr -w "%{http_code}" -F [email protected] 'upload.pinto.server:3000/add?author=AUTHOR') != 200]]; then exit 1; fi

⁠DESCRIPTION

Pinto⁠ is an awesome tool for managing internal repository of Perl distributions. avastsoftware/pinto⁠ is docker container with pintod on entrypoint (and with pinto tool inside). However, pintod 'only' has the same interface as CPAN, i.e. it only enables distributions to be fetched from it. This project avastsoftware/pinto_uploader⁠ complements it. It enables to upload Perl distributions to the pinto repository (e.g. a company-wide internal repository).

⁠CAVEATS AND LIMITATIONS

There is no authorization / authentication implemented: everyone who can access the server is able to push a distribution into the repository. A possible solution is to put Basic access authentication on proxy http server before pinto uploader.

⁠SEE ALSO

pinto uploader is a replacement for manual call of pinto command on a pinto server with avastsoftware/pinto service.

scp Perl-Module-1.0.0.tar.gz pinto.server:/tmp
ssh pinto.server docker run -v/var/lib/pinto:/var/lib/pinto avastsoftware/pinto pinto add /tmp/Perl-Module-1.0.0.tar.gz --author AUTHOR

Tag summary

Content type

Image

Digest

sha256:6e012ceb7…

Size

126.7 MB

Last updated

over 8 years ago

docker pull avastsoftware/pinto_uploader