Skip to content

daltenty/ubumirror-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ubumirror-docker

This allows you to use Ubuntu's mirroring tools inside a Docker container.

Note: Running any of the commands here will cause a lot of data transfer.

Usage

Each mirror is likely to have different requirements, and so it's assumed you're likely to build your own image and customise the provided configuration file. If you modify the configuration file as desired, it'll be imported into the image during the build process.

However, by default it's configured to fetch i386, amd64 images and to use the default directories (internally, you'll need to mount a data volume).

By default, all output is written to log files. This is output to use logs in the current working directory, you'll want to tail those (tail -f logs/filename.log).

Building

Building is pretty standard:

docker build -t nickcharlton/ubumirror .

Running

As an example, using the uburelease command:

docker run \
    -v $(pwd)/releases:/srv/mirror/ubuntu-releases \
    -v $(pwd)/logs:/var/log/ubumirror \
    -t nickcharlton/ubumirror /usr/bin/uburelease

You'll want to adjust the mounted volumes according to where the data should be output to, probably a different one per tool. Check the config file for the assumed mount point.

Author

Copyright (c) 2015 Nick Charlton. MIT Licensed.

About

A docker image for ubumirror.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published