Skip to content

Instantly share code, notes, and snippets.

@epcim
Forked from LotharKAtt/Aptly
Created July 18, 2018 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epcim/823425957f87da0cd6b38568714f2b55 to your computer and use it in GitHub Desktop.
Save epcim/823425957f87da0cd6b38568714f2b55 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment