LotharKAtt
9/20/2017 - 8:03 AM

Aptly

Setup aptly with Mirantis CI/CD stacks

aptly mirror list -raw | grep -E '*' | xargs -n 1 aptly mirror update
aptly_mirror_update.sh -s -v 
aptly-publisher --architectures=amd64 --timeout=1200 publish -v -c /etc/aptly-publisher.yaml --url http://192.168.104.50:8084 --recreate

aptly-publisher --url http://192.168.104.50:8084 promote --source ubuntu-trusty/nightly --target ubuntu-trusty/testing --force-overwrite -d --timeout 600 --recreate
aptly-publisher --url http://192.168.104.50:8084 promote --source ubuntu-xenial/nightly --target ubuntu-xenial/testing --force-overwrite -d --timeout 600 --recreate

nohup aptly api serve --no-lock &

Add repo:
aptly repo add ubuntu-xenial-extra /tmp/vlan_1.9-3.2~u16.04+mcp1_amd64.deb 
aptly snapshot create ubuntu-xenial-extra-1 from repo ubuntu-xenial-extra
aptly-publisher --timeout=1200 publish -v -c /etc/aptly-publisher.yaml --url http://localhost:8080 --recreate
aptly api serve --listen=127.0.0.1:8080 -no-lock



DEBUG:
rm /srv/volumes/aptly/db/LOCK

timeout http-request 1200s
timeout queue 1200s
timeout connect 1200s
timeout client 1200s
timeout server 1200s
timeout check 1200s

curl http://192.168.104.50:8084/api/snapshots
curl http://192.168.104.50:8084/api/publish