Skip to content

Latest commit

 

History

History
43 lines (23 loc) · 1.02 KB

README.rst

File metadata and controls

43 lines (23 loc) · 1.02 KB

Alpine Linux Package Mirror - Docker Image

A Dockerfile which builds an alpine linux package mirror server. It may also be used to host a private package repo for packages that aren't part of the core distribution.

Based on http://wiki.alpinelinux.org/wiki/How_to_setup_a_Alpine_Linux_mirror

To configure alpine to use your new package mirror see http://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management

To build the images:

make build

To run the mirror, provide the package directory tree as a volume from the host, or another container. In this example the host directory ./packages contains the package data:

docker run -ti \
    -v $PWD/packages:/var/www/localhost/htdocs/alpine/ \
    alpine-package-mirror:$USER

To run the mirror with a companion container which takes care of pulling updates with rsync, you can use the provided docker-compose.yml:

BUILD_ID=latest make build
docker-compose up -d