Skip to content

Docker container which mirrors manjaro packages and serves them via nginx

License

Notifications You must be signed in to change notification settings

Cobbert/manjaro-package-mirror

 
 

Repository files navigation

manjaro-package-mirror

Docker container which mirrors manjaro packages and serves them via nginx

This image is based on the alpine image and uses rsync to synchronize the packages and nginx to deliver them

Supported Architectures

The image is created for the amd64 and arm64 platforms and is available in the Github Container Registry.

Parameters

A container can be started with various parameters to make changes to the default configuration, expose ports, and persist data. For example, -p 8080:80 would expose port 80 inside the container for access from outside via port 8080. The following parameters are available for this image:

Parameter Function
-p 8080:80 Binds container port 80 to host port 8080
-v /path/to/storage:/srv/http/manjaro Persists the package repository data under /path/to/storage
-e SOURCE_MIRROR=rsync://mirrorservice.org/repo.manjaro.org/repos/ Allows to use another mirror for synchronization
-e SLEEP=6h Adjusts the pause time between synchronizations

Recommended Rsync Mirrors (Source: wiki.manjaro.org)

Manjaro has provided a list of Rsync-capable mirrors at https://wiki.manjaro.org/index.php/Manjaro_Mirrors, which synchronize from the official Manjaro server. It's best to choose the one closest to you.

Region URI
Asia / Japan rsync://ftp.tsukuba.wide.ad.jp/manjaro
Europe / Germany rsync://ftp.halifax.rwth-aachen.de/manjaro/
Europe / Sweden rsync://ftp.lysator.liu.se/pub/manjaro/
Europe / Italy rsync://manjaro.mirror.garr.it/manjaro/
Europe / United Kingdom rsync://mirrorservice.org/repo.manjaro.org/repos/
RU / Russian Federation rsync://mirror.yandex.ru/mirrors/manjaro/

Usage

The container can be started either with docker run or docker-compose

Please note: It may initially take up to 5 minutes for the first files to load. It is not an error if no log output is displayed until then. Please make sure to choose a suitable directory for persistence before running the container and replace the placeholder "/path/to/storage" chosen here with it.

docker-compose (recommended)

---
version: "3.4"
services:
  manjaro-mirror:
    container_name: manjaro-mirror
    image: ghcr.io/tobiaswx/manjaro-package-mirror
    volumes:
      - /path/to/storage:/srv/http/manjaro
    ports:
      - 8080:80
    restart: unless-stopped

docker run

docker run -d \
  --name=manjaro-mirror \
  -p 8080:80 \
  -v /path/to/storage:/srv/http/manjaro \
  --restart unless-stopped \
  ghcr.io/tobiaswx/manjaro-package-mirror

About

Docker container which mirrors manjaro packages and serves them via nginx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 77.7%
  • Dockerfile 22.3%