forked from signal18/replication-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdaterepo.sh
executable file
·41 lines (30 loc) · 2.07 KB
/
updaterepo.sh
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
#e!/bin/sh
echo '{"repos": [' > share/repo/repos.json
echo '{"name": "mariadb", "image": "mariadb", "tags":' >> share/repo/repos.json
wget -q https://registry.hub.docker.com/v1/repositories/mariadb/tags -O - >> share/repo/repos.json
echo '},' >> share/repo/repos.json
echo '{"name": "mariadb", "image": "mariadb/columnstore", "tags":' >> share/repo/repos.json
wget -q https://registry.hub.docker.com/v1/repositories/mariadb/columnstore/tags -O - >> share/repo/repos.json
echo '},' >> share/repo/repos.json
echo '{"name": "mysql", "image": "mysql", "tags":' >> share/repo/repos.json
wget -q https://registry.hub.docker.com/v1/repositories/mysql/tags -O - >> share/repo/repos.json
echo '},' >> share/repo/repos.json
echo '{"name": "percona", "image": "percona", "tags":' >> share/repo/repos.json
wget -q https://registry.hub.docker.com/v1/repositories/percona/tags -O - >> share/repo/repos.json
echo '},' >> share/repo/repos.json
echo '{"name": "proxysql", "image": "proxysql/proxysql", "tags":' >> share/repo/repos.json
wget -q https://registry.hub.docker.com/v1/repositories/proxysql/proxysql/tags -O - >> share/repo/repos.json
echo '},' >> share/repo/repos.json
echo '{"name": "maxscale", "image": "mariadb/maxscale", "tags":' >> share/repo/repos.json
wget -q https://registry.hub.docker.com/v1/repositories/mariadb/maxscale/tags -O - >> share/repo/repos.json
echo '},' >> share/repo/repos.json
echo '{"name": "haproxy", "image": "haproxy", "tags":' >> share/repo/repos.json
wget -q https://registry.hub.docker.com/v1/repositories/haproxy/tags -O - >> share/repo/repos.json
echo '},' >> share/repo/repos.json
echo '{"name": "sphinx", "image": "leodido/sphinxsearch", "tags":' >> share/repo/repos.json
wget -q https://registry.hub.docker.com/v1/repositories/leodido/sphinxsearch/tags -O - >> share/repo/repos.json
echo '},' >> share/repo/repos.json
echo '{"name": "postgres", "image": "postgres", "tags":' >> share/repo/repos.json
wget -q https://registry.hub.docker.com/v1/repositories/postgres/tags -O - >> share/repo/repos.json
echo '}' >> share/repo/repos.json
echo ']}' >> share/repo/repos.json