docker-debian-repository/README.md

77 lines
1.9 KiB
Markdown
Raw Normal View History

2014-08-13 11:48:49 +00:00
Debian-repository for Docker
============================
2014-08-12 21:04:26 +00:00
2014-08-13 11:52:01 +00:00
A local repository for publishing deb files for use with apt.
2014-08-13 08:51:29 +00:00
This docker box provides an apt repository based on the tool reprepro.
2014-08-13 10:22:36 +00:00
The repository is served by an nginx server.
2014-08-13 08:51:29 +00:00
2014-08-13 11:48:49 +00:00
Usage
-----
### 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 -p 49160:22 -p 49161:80 glenux/debian-repository
### Uploading packages
2014-08-13 10:03:22 +00:00
Fill your ``~/.dput.cf`` with the following content :
[DEFAULT]
default_host_main = docker
[docker]
fqdn = localhost
method = scp
login = user
incoming = /docker/incoming
ssh_config_options =
Port 9022
StrictHostKeyChecking no
2014-08-13 11:36:17 +00:00
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 172.17.0.152):
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.
2014-08-13 11:48:49 +00:00
### Accessing the repository
Add the following line to your source list
deb http://localhost:49161/debian unstable main contrib non-free
Credits
-------
<!-- ![Gnuside](http://www.gnuside.com/wp-content/themes/gnuside-ignition-0.2-1-g0d0a5ed/images/logo-whitebg-128.png) -->
Got questions? Need help? Tweet at [@glenux](http://twitter.com/glenux).
Debian-Repository for Docker is maintained and funded by [Glenux](http://www.glenux.net)
License
-------
Debian-Repository for Docker is Copyright © 2012 Gnuside.
2014-08-12 21:04:26 +00:00
2014-08-13 11:48:49 +00:00
It is free software, and may be redistributed under the terms specified in the LICENSE file.
2014-08-12 21:04:26 +00:00