An open API service indexing awesome lists of open source software.

https://github.com/dnephin/alpine-package-mirror

Dockerfile to run an alpine package mirror or private package repo
https://github.com/dnephin/alpine-package-mirror

Last synced: 24 days ago
JSON representation

Dockerfile to run an alpine package mirror or private package repo

Awesome Lists containing this project

README

        

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:

.. code:: sh

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:

.. code:: sh

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``:

.. code:: sh

BUILD_ID=latest make build
docker-compose up -d