Richard Felkl | d59c565 | 2018-02-08 13:14:05 +0100 | [diff] [blame] | 1 | #!/bin/bash -xe |
| 2 | #docker registry |
| 3 | salt-call -t 5 --retcode-passthrough --no-color state.sls docker.host |
| 4 | docker run --restart always -d -p 5000:5000 --name registry registry:2 |
| 5 | salt-call -t 5 --retcode-passthrough state.sls docker.client.registry |
| 6 | docker system prune --all --force |
| 7 | |
| 8 | #aptly |
| 9 | salt-call -t 5 --no-color state.sls aptly |
| 10 | salt-call -t 5 --retcode-passthrough --no-color state.sls aptly |
| 11 | sudo -i -u aptly aptly_mirror_update.sh -sv |
| 12 | sudo -i -u aptly aptly_publish_update.sh -acrfv |
| 13 | |
| 14 | #debmirror |
| 15 | /srv/scripts/debmirror.sh |
| 16 | |
| 17 | #git |
| 18 | salt-call -t 5 --retcode-passthrough --no-color state.sls git.server |
| 19 | |
| 20 | #pypi |
| 21 | #pip install pip2pi |
| 22 | #pip2pi /srv/pypi_mirror/packages/ -r /srv/pypi_mirror/requirements.txt |