edgelesssys / contrast

Deploy and manage confidential containers on Kubernetes
https://docs.edgeless.systems/contrast
GNU Affero General Public License v3.0
183 stars 7 forks source link

just: append to containerlookup one line at a time #647

Closed burgerdev closed 3 months ago

burgerdev commented 3 months ago

When I interrupt an image push operation, I usually get corrupted containerlookup files

ghcr.io/edgelesssys/contrast/coordinator:latest=burgerdev.azurecr.io/burgerdev/contrast/coordinator@sha256:d4cd60ce1ab14882ed912c02f5bfaeeb014df459d8636428a2a090929e551a9e
ghcr.io/edgelesssys/contrast/initializer:latest=burgerdev.azurecr.io/burgerdev/contrast/initializer@sha256:0b275138fa9ab8e980a090993d713c7aa6baf31939b61a7ff90eb1bb3b138bc6
ghcr.io/edgelesssys/contrast/openssl:latest=burgerdev.azurecr.io/burgerdev/contrast/openssl@sha256:bdd94fc888372bd8582cf22e7ffbe112f555d87e5c757b8f20d1738c539c414f
ghcr.io/edgelesssys/contrast/port-forwarder:latest=burgerdev.azurecr.io/burgerdev/contrast/port-forwarder@sha256:c722e7c2d4de8e1dd855d2cb278edce2f22507f51d3d120434ab52f1c17a7a6c
ghcr.io/edgelesssys/contrast/service-mesh-proxy:latest=    <-- NO NEWLINE HERE!

Reordering the commands to first build and then print a line should allow resuming an interrupted push without cleaning up first.