yaml-test-runtimes

This repo produces a Docker image called yamlio/yaml-test-runtimes.

make build

It contains the following YAML parsing test programs and their supporting runtime requirements:

Making the Docker Image

The make build command will build each of the runtimes and combine them into the final image.

The final Docker image is tagged yamlio/yaml-test-runtimes:0.0.x and is pushed to hub.docker.com. It is based on the latest alpine image with the necessary files copied in from the other images. It's currently around 400MB in size.

Repository Layout

  • Makefile -- Automates all the tasks.
  • Config.mk -- All the runtime sources and version info is defined here.
  • docker/ -- Each runtime component is defined in a subdirectory of this.
    • Makefile -- This Makefile is used to build each runtime.
    • main/ -- The Dockerfile for building the final image.
    • alpine/ -- A base image Dockerfile used for many runtime builds.
    • */ -- There is one Dockerfile directory for each defined runtime.

Used By

This image is used by the following projects:

Testing the Build

Running make test will build the Docker image and then run a container from it and run a simple test program. The tester calls each parser with the YAML input string foo: bar.