GithubHelp home page GithubHelp logo

tobiaswx / manjaro-package-mirror Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 32 KB

Docker container which mirrors manjaro packages and serves them via nginx

License: MIT License

Dockerfile 30.60% Shell 69.40%
manjaro manjaro-linux mirror mirroring package package-mirror pacman pacman-mirror rsync manjaro-package manjaro-package-mirror rsync-mirror

manjaro-package-mirror's Introduction

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

manjaro-package-mirror's People

Contributors

tobiaswx avatar

Watchers

 avatar

manjaro-package-mirror's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.