Skip to content

flavienbwk/alpine-mirror-docker

Repository files navigation

alpine-mirror-docker

Status : tested & working ✔️

This repository refactors victorb's mirror.sh script

Downloading & updating

  1. Setup your Alpine version and releases in mirror.sh

  2. Run the mirror container :

    docker-compose build
    docker-compose up mirror

Tips: We recommend you downloading the mirror from a cloud provider and then transfer the files to your computer.

Serving

  1. Check your mirroring succeeded in ./mirror/* or typing du -sh ./mirror to check the volume

    The default configuration should make you download 47G

  2. Run the server :

    docker-compose up -d server

    Server will run on localhost:8080

Client configuration

To point your Alpine clients to your mirror, update their /etc/apk/repositories file as follow :

http://localhost:8080/v3.13/main
http://localhost:8080/v3.13/community

👉 Feel free to add a reverse proxy or update the nginx configuration file to secure the mirror with SSL/TLS
👉 Feel free to send pull requests as well !

About

Download an Alpine Linux mirror for apk downloads

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published