add checkupdates
All checks were successful
dockers/debian/pipeline/head This commit looks good

This commit is contained in:
chris 2020-06-29 10:48:31 +02:00
parent 6d10322f4d
commit f248913ce8
2 changed files with 6 additions and 0 deletions

View file

@ -38,6 +38,7 @@ ARG DUMB_INIT_VERSION
COPY --from=toolbuilder /build/build /usr/local/sbin/gosu COPY --from=toolbuilder /build/build /usr/local/sbin/gosu
COPY --from=toolbuilder /dumb-init /usr/local/sbin/dumb-init COPY --from=toolbuilder /dumb-init /usr/local/sbin/dumb-init
COPY apt-install /bin/apt-install COPY apt-install /bin/apt-install
COPY checkupdates /bin/checkupdates
CMD "bash" CMD "bash"
LABEL version.debian=buster \ LABEL version.debian=buster \
version.gosu=$GOSU_VERSION \ version.gosu=$GOSU_VERSION \

5
checkupdates Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
apt-get -qy update > /dev/null
apt-get -o Debug::NoLocking=yes -s dist-upgrade -y | awk '/^Inst/ {print $2 " " $5}' | wc -l
rm -rf /var/lib/apt/lists/*