- Test repository for container-structure-test which validates a container image.
- It also contains a sample configuration file for CircleCI.
docker build -t tsubasaogawa/test-for-cst:0.1 .curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 \
&& chmod +x container-structure-test-linux-amd64 \
&& sudo mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-testcontainer-structure-test test \
--image tsubasaogawa/test-for-cst:0.1 \
--config .container-structure-test/config.yamlIt will output the following results:
====================================
====== Test file: config.yaml ======
====================================
=== RUN: Command Test: it says hello
--- PASS
stdout: hello
=== RUN: File Existence Test: date file exists
--- PASS
=== RUN: Metadata Test
--- PASS
=============================================================
========================== RESULTS ==========================
=============================================================
Passes: 3
Failures: 0
Total tests: 3
PASS