blob: 6cb2cedd166c9cf8ea1581e51d078da16c5125d6 [file] [log] [blame]
Richard Felkld59c5652018-02-08 13:14:05 +01001#!/bin/bash -xe
2#docker registry
3salt-call -t 5 --retcode-passthrough --no-color state.sls docker.host
4docker run --restart always -d -p 5000:5000 --name registry registry:2
5salt-call -t 5 --retcode-passthrough state.sls docker.client.registry
6docker system prune --all --force
7
8#aptly
9salt-call -t 5 --no-color state.sls aptly
10salt-call -t 5 --retcode-passthrough --no-color state.sls aptly
11sudo -i -u aptly aptly_mirror_update.sh -sv
12sudo -i -u aptly aptly_publish_update.sh -acrfv
13
14#debmirror
15/srv/scripts/debmirror.sh
16
17#git
18salt-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