This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CURRENT_TIMESTAMP=$(date +%s) | |
echo "Image | Creation date | Age (in days) | Packages to upgrade" | |
echo "---|---|---|---" | |
for i in centos:7 quay.io/centos/centos:centos7 quay.io/centos/centos:stream8 quay.io/centos/centos:stream9 \ | |
debian:10 debian:11 debian:12 \ | |
ubuntu:18.04 ubuntu:20.04 ubuntu:22.04 ubuntu:24.04 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.sonatype.nexus.repository.storage.StorageFacet; | |
import org.sonatype.nexus.repository.storage.Query; | |
import org.joda.time.DateTime; | |
import org.joda.time.format.DateTimeFormat; | |
def fmt = DateTimeFormat.forPattern('yyyy-MM-dd HH:mm:ss'); | |
[ | |
'maven-releases', | |
'other-releases' | |
].each { reponame -> |