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
- Host: GitHub
- URL: https://github.com/dnephin/alpine-package-mirror
- Owner: dnephin
- License: apache-2.0
- Created: 2015-07-30T21:29:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-14T18:55:13.000Z (about 7 years ago)
- Last Synced: 2025-03-25T14:38:12.945Z (about 1 month ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 25
- Watchers: 6
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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_managementTo 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:$USERTo 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