Add label showing image creation time on commit
authorMichael Brown <supermathie@gmail.com>
Thu, 31 Mar 2022 02:47:08 +0000 (22:47 -0400)
committerMichael Brown <supermathie@gmail.com>
Thu, 31 Mar 2022 02:47:39 +0000 (22:47 -0400)
launcher

index 4c175d0784f2f86b49cef879cc9ffb1faad9be57..36e3cb19832f28d6f5b2ce479e4be5a2e03a8701 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -711,6 +711,7 @@ run_bootstrap() {
   sleep 5
 
   $docker_path commit \
+    -c "LABEL org.opencontainers.image.created=\"$(TZ=UTC date -Iseconds)\"" \
     "$CONTAINER_ID" \
     $local_discourse/$config || die "FAILED TO COMMIT $CONTAINER_ID"
   $docker_path rm "$CONTAINER_ID"