项目作者: flavienbwk

项目描述 :
Download an Alpine Linux mirror for apk downloads
高级语言: Shell
项目地址: git://github.com/flavienbwk/alpine-mirror-docker.git
创建时间: 2021-03-09T17:01:54Z
项目社区:https://github.com/flavienbwk/alpine-mirror-docker

开源协议:

下载


alpine-mirror-docker






Status : tested & working :heavy_check_mark:

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 :

    1. docker-compose build
    2. 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 :

    1. 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 :

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

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