GithubHelp home page GithubHelp logo

msabramo / pyaptly Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adfinis/pyaptly

0.0 2.0 0.0 7.29 MB

Automates the creation and managment of aptly mirrors and snapshots based on yml input files.

License: GNU Affero General Public License v3.0

Makefile 0.08% Python 99.85% Nginx 0.07%

pyaptly's Introduction

Pyaptly

Automates the creation and managment of aptly mirrors and snapshots based on yml input files.

travis coverage [1]

Read the Docs

[1]Coverage enforced by tests (on travis)

Example commands

Initialize a new aptly server.

pyaptly -c mirrors.yml mirror create
pyaptly -c mirrors.yml mirror update
pyaptly -c mirrors.yml snapshot create
pyaptly -c mirrors.yml publish create

Update mirrors and snapshots and switch publish endpoints with automatic-update: true to the new snapshots.

pyaptly -c mirrors.yml mirror update
pyaptly -c mirrors.yml snapshot create
pyaptly -c mirrors.yml publish create
pyaptly -c mirrors.yml publish update

Manually trigger a switch to the new snapshots for the publish endpoint ubuntu/stable.

pyaptly -c mirrors.yml publish update ubuntu/stable

Install Debian/Ubuntu

Sources:

deb http://aptly.adfinis-sygroup.ch/adsy-public/debian wheezy main

deb http://aptly.adfinis-sygroup.ch/adsy-public/debian jessie main

deb http://aptly.adfinis-sygroup.ch/adsy-public/ubuntu trusty main

deb http://aptly.adfinis-sygroup.ch/adsy-public/ubuntu vivid main

deb http://aptly.adfinis-sygroup.ch/adsy-public/ubuntu xenial main

Install:

wget -O - http://aptly.adfinis-sygroup.ch/aptly.asc | apt-key add -
apt-get update
apt-get install python-pyaptly

Testing

Automatic

git submodule update --init --recursive
make test-local

Manual. There is a safety check in tests. They won't work if you don't set $HOME.

git submodule update --init --recursive
source testenv
py.test -x

or

git submodule update --init --recursive
export HOME="$(pwd)"
export PATH="$HOME/aptly_0.9.6_linux_amd64/:$PATH"
py.test -x

Vagrant Box

The box provisions aptly, nginx and two repos which can be used for tests:

aptly mirror create mirro-fakerepo01 http://localhost/fakerepo01 main
aptly mirror create mirro-fakerepo02 http://localhost/fakerepo02 main

pyaptly's People

Contributors

karras avatar tongpu avatar winged avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.