Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-fedora-mirror

This simply wraps up quick-fedora-mirror in a nice loop in a container

Usage

Environment Varibles

ENV description values default
MODULES the rsync modules to sync
VERBOSE the verbosity level of the quick-fedora-mirror scripts See here for possible values
HARDLINK_OPTIMIZE set this to enable quick-fedora-hardlink
CHECKIN_SITE
CHECKIN_HOST
CHECKIN_PASS

Docker/podman

podman run --rm \
        --tmpfs /run \
        -e MODULES="fedora-buffet" \
        -e VERBOSE=3 \
        -e HARDLINK_OPTIMIZE=yes \
        -v ./content:/srv/mirror/content:Z \
        fedora-mirror 

docker-compose

with filesystem mount

version: "3"
services:
  quick-fedora-mirror:
    build: .
    restart: always
    environment:
      - MODULES="fedora-buffet fedora-epel"
      - VERBOSE=3
      - HARDLINK_OPTIMIZE=yes
      - CHECKIN_SITE=
      - CHECKIN_HOST=
      - CHECKIN_PASS=
    volumes:
      - <LOCAL CONTENT LOCATION>:/srv/mirror/content
      - <LOCAL CONTENT LOCATION>:/srv/mirror/content:z #For SELinux

with volume mount

version: "3"
services:
  quick-fedora-mirror:
    build: .
    restart: always
    environment:
      - MODULES="fedora-buffet fedora-epel"
      - VERBOSE=3
      - HARDLINK_OPTIMIZE=yes
      - CHECKIN_SITE=
      - CHECKIN_HOST=
      - CHECKIN_PASS=
    volumes:
      - content:/srv/mirror/content
volumes:
  content:

with volume mount & nginx on port 8080

version: "3"
services:
  quick-fedora-mirror:
    build: .
    restart: always
    environment:
      - MODULES="fedora-buffet fedora-epel"
      - VERBOSE=3
      - HARDLINK_OPTIMIZE=yes
      - CHECKIN_SITE=
      - CHECKIN_HOST=
      - CHECKIN_PASS=
    volumes:
      - content:/srv/mirror/content
  nginx:
    image: nginx
    ports:
      - "8080:8080"
    volumes:
      - content:/usr/share/nginx/html:ro
      - ./nginx.conf:/etc/nginx/nginx.conf
      - ./nginx.conf:/etc/nginx/nginx.conf:z #For SELinux
volumes:
  content:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages