github.com/quay/claircore@v1.5.28/ubuntu/testdata/fetch-releases.sh (about)

     1  #!/bin/sh
     2  curl -sSLf 'https://api.launchpad.net/devel/ubuntu/series' |
     3  	jq -r '
     4  		.entries[]|
     5  		{name, version}|
     6  		@sh "mkdir -p dist/\(.version)/etc",
     7  		@sh "podman run --rm docker.io/library/ubuntu:\(.name) cat /etc/os-release>dist/\(.version)/etc/os-release",
     8  		@sh "podman run --rm docker.io/library/ubuntu:\(.name) cat /etc/lsb-release>dist/\(.version)/etc/lsb-release",
     9  		@sh "podman rmi docker.io/library/ubuntu:\(.name)"
    10  	' |
    11  	sh -x
    12  for i in `seq 3`; do
    13  	find . -empty -delete
    14  done