You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Glenn Y. Rolland 13a4d00e30
SSH port must match docker run command in dput configuration.
2 months ago
configs Use three suites in reprepro-distributions 2 years ago
scripts Add linebreak between multiple import pubkeys 4 months ago Fix command line for keys directory. 9 years ago
Dockerfile Dockerfile: use LABEL instead of MAINTAINER 2 years ago
LICENSE.BSD Added LICENSE file. 9 years ago
Makefile Finalize with nginx. 9 years ago SSH port must match docker run command in dput configuration. 2 months ago

Debian-repository for Docker

A local repository for publishing deb files for use with apt.

This docker box provides an apt repository based on the tool reprepro. The repository is served by an nginx server.


Running the box

Get the box from docker's automated builds

docker pull glenux/debian-repository

Run with 22 and 80 ports opened. Share a directory containing you public SSH keys.

docker run -d -v $(pwd)/keys:/docker/keys -p 49160:22 -p 49161:80 glenux/debian-repository

Uploading packages

Fill your ~/ with the following content :

default_host_main = docker

fqdn = localhost
method = scp
login = user
incoming = /docker/incoming
ssh_config_options =
        Port 49160
    	StrictHostKeyChecking no

Then upload the latest package you maintain :

$ dput ~/src/foobar_0.1.10_amd64.changes
Trying to upload package to docker
Uploading to docker (via scp to
foobar_0.1.10_all.deb              100%   39KB  39.3KB/s   00:00    
foobar_0.1.10.dsc                  100%  488     0.5KB/s   00:00    
foobar_0.1.10.tar.gz               100%  826KB 826.0KB/s   00:00    
foobar_0.1.10_amd64.changes        100% 1488     1.5KB/s   00:00    
Successfully uploaded packages.

Accessing the repository

Add the following line to your source list

deb http://localhost:49161/debian unstable main contrib non-free


Got questions? Need help? Tweet at @glenux.

Debian-Repository for Docker is maintained and funded by Glenn Y. Rolland, aka Glenux


Debian-Repository for Docker is Copyright © 2014 Glenn Y. Rolland.

It is free software, and may be redistributed under the terms specified in the LICENSE file.