https://github.com/cebarks/docker-fedora-mirror
https://github.com/cebarks/docker-fedora-mirror
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cebarks/docker-fedora-mirror
- Owner: cebarks
- Created: 2021-04-24T13:23:57.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-24T15:06:02.000Z (over 5 years ago)
- Last Synced: 2025-07-20T05:19:07.522Z (about 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-fedora-mirror
This simply wraps up [quick-fedora-mirror](https://pagure.io/quick-fedora-mirror) in a nice loop in a container
## Usage
### Environment Varibles
| ENV | description | values | default |
|-----|-------------|--------|---------|
|`MODULES`|the [rsync modules](https://fedoraproject.org/wiki/Infrastructure/Mirroring#Available_content) to sync|||
|`VERBOSE`|the verbosity level of the quick-fedora-mirror scripts|See [here](https://pagure.io/quick-fedora-mirror/blob/master/f/quick-fedora-mirror.conf.dist#_113) for possible values||
|`HARDLINK_OPTIMIZE`|set this to enable [quick-fedora-hardlink](https://pagure.io/quick-fedora-mirror/blob/master/f/quick-fedora-hardlink)||
|`CHECKIN_SITE`|||
|`CHECKIN_HOST`|||
|`CHECKIN_PASS`|||
### Docker/podman
```bash
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
```yaml
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:
- :/srv/mirror/content
- :/srv/mirror/content:z #For SELinux
```
#### with volume mount
```yaml
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
```yaml
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:
```