Interview Prep/Docker/Build Performance & CI

What is `container-structure-test`?

IntermediateProductionBuild Performance & CI
Answer

A Google tool that asserts image contents declaratively in YAML: command output, file existence/permissions, metadata (user, entrypoint, env).

schemaVersion: 2.0.0
metadataTest:
  user: "10001"
fileExistenceTests:
  - name: no shell
    path: /bin/sh
    shouldExist: false

container-structure-test test --image app:1 --config test.yaml

All Docker questions Roadmap: Docker & containers

More on Build Performance & CI