Giter Site home page Giter Site logo

dernasherbrezon / apt-transport-swift Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 166 KB

additional "swift" protocol for apt so you can host your giant apt repository in Openstack swift

License: Apache License 2.0

C 86.03% CMake 11.95% Shell 2.02%
apt openstack-swift ubuntu repository

apt-transport-swift's Introduction

About Build Status Quality Gate Status

Additional "swift" protocol for apt so you can host your giant apt repository in Openstack swift

apt is a great packaging system and Openstack swift is a great place to backup/store static files. apt-swift is especially useful and fast if you are hosting your servers within Openstack.

Installation

sudo add-apt-repository ppa:rodionovamp/apt-transport-swift
sudo apt-get update
sudo apt-get install apt-transport-swift

Compile

mkdir build && cd build
cmake ..
make
make test

Once compiled, the resulting swift binary must be placed in /usr/lib/apt/methods/ along with the other protocol binaries.

Configuration

This is how you add it to the /etc/apt/sources.list file:

deb swift://container prod main

Configuration should be put into /etc/apt/apt.conf.d/:

Swift {
 Container0 {
   Name "container";
   URL "https://example.com";
   Username "username";
   Password "password";
 };
};

You could configure several private containers on different hosts:

Swift {
 Container0 {
   Name "container";
   URL "https://example.com";
   Username "username";
   Password "password";
 };
 Container1 {
   Name "container2";
   URL "https://2.example.com";
   Username "username";
   Password "password";
 }; 
};

Simply upload all of your .deb packages and Packages.gz file into the Openstack swift container you chose with the file key mapping that matches the file system layout.

apt-transport-swift's People

Contributors

dernasherbrezon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

apt-transport-swift's Issues

Send "200 URI Start"

  • During download
  • parse headers before downloading body
  • reply with "200 URI Start" to apt to indicate status

Sample message:

200 URI Start
URI: http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
Size: 65861
Last-Modified: Fri, 08 Jun 2018 07:53:00 GMT

Support timeout

Check configuration for "Acquire::http::Timeout" and set CURLOPT_TIMEOUT if configured

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.