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
More on Build Performance & CI
How do you make Docker builds fast in CI where runners are ephemeral?BeginnerWhat are the cache backends in buildx?BeginnerWhy does `inline` cache often disappoint?AdvancedHow do you structure a Python Dockerfile for the best caching and size?IntermediateHow do you structure a Node.js production image?IntermediateHow do you build a small Java image?Beginner