This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.md.j2
77 lines (60 loc) · 2.57 KB
/
README.md.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
riot-mc-mirror
==============
Scheduled Min.io mirroring using **Min.io Client mirror option with crontab**. Simple.
Container does first mirroring when starting, to validate if the configuration parameters are valid.
**ARM image available**
# QA
Q: Why additional container, not directly `minio/mc`?
A: For following reasons:
- Easily use crontab
- Configure mc connection easily with environment variables
- No official ARM container
Example usage
-------------
```yaml
version: "2"
services:
mirroring_comrade:
image: quay.io/riotkit/riot-mc-mirror:2019-09-11T20-17-47Z-x86_64
environment:
# when (in crontab syntax)
- CRON_SCHEDULE=*/10 * * * *
- MIRROR_OPTS=--debug # optional Min.io Client options
- SOURCE_URL=http://primary.backups.example.org
- SOURCE_BUCKET=backup
- SOURCE_ACCESS_TOKEN=123
- SOURCE_SECRET=456
- TARGET_URL=http://replica-1.backups.example.org
- TARGET_BUCKET=backup
- TARGET_ACCESS_TOKEN=123
- TARGET_SECRET=456
```
Configuration reference
-----------------------
List of all environment variables that could be used.
```yaml
{% for env_var, attrs in DOCKERFILE_ENVS.items() %}{% if attrs[2] %}# {{ attrs[2] }}{% endif %}
- {{ attrs[0] }} # (default: {{ attrs[1] }})
{% endfor %}
```
Developing the container
------------------------
- The container is built on quay.io and hub.docker com
- When you start working on it locally, at first run `make dev@develop` to install git hooks
- README.md is automatically generated from README.md.j2, do not edit the generated version!
- Use `make` for building, pushing, etc.
Releasing
---------
On Travis CI the build is triggered each month, then all recent versions of Min.io Client are built. Already existing docker tags are not overwritten.
The build is also triggered on-commit.
To release a bugfix version and REBUILD EXISTING TAGS just add "@force-rebuild" in commit message, recent 3 tags will be rebuilt (not all in registry).
Copyleft
--------
Created by **RiotKit Collective**, a libertarian, grassroot, non-profit organization providing technical support for the non-profit Anarchist movement.
Check out those initiatives:
- International Workers Association (https://iwa-ait.org)
- Federacja Anarchistyczna (http://federacja-anarchistyczna.pl)
- Związek Syndykalistów Polski (https://zsp.net.pl) (Polish section of IWA-AIT)
- Komitet Obrony Praw Lokatorów (https://lokatorzy.info.pl)
- Solidarity Federation (https://solfed.org.uk)
- Priama Akcia (https://priamaakcia.sk)