#!/bin/sh set -eu tmpdir=$(mktemp -d) trap 'rm -rf ${tmpdir}' EXIT sourcedir="$(realpath "$(dirname $0)")" script="${sourcedir}/kiwi_metainfo_helper" cd $tmpdir # Setup environment mkdir -p ${tmpdir}/repos/ cp "${sourcedir}/sles-release-15.4-150400.32.2.x86_64.rpm" ${tmpdir}/repos/ # Mock "date" export PATH=${tmpdir}:$PATH cat >${tmpdir}/date <<'EOF' #!/bin/sh exec /usr/bin/date -d "2018-10-30T09:19:02.074934628Z" "$@" EOF chmod a+x ${tmpdir}/date cat >.data <Dockerfile <.data <Dockerfile <.data <Dockerfile.FLAVOR <.data <NotADockerfile <Dockerfile <Dockerfile - <containers/annotation - < 491e4873e01f1a58464ea33970a08a3219062ec1bb9a4c5a1bd014d0d596beab registry.suse.com/bci/bci-base:15.6 sha256:cee5bd9e5a186dc1cca01e523f588f4c19c6c45abaa47139f7c021c289cb4c04 sha256:887c83266ee8ae4a83c215974a814abbb2007f0a445a67fac7079e922e846133 cee5bd9e5a186dc1cca01e523f588f4c19c6c45abaa47139f7c021c289cb4c04 0 noarch 05cb99d4617ee49ed6419f72cc8fcf6e EOF bash "${script}" diff -u Dockerfile - <