diff --git a/container-compose b/container-compose index 725385e..ba5437f 100755 --- a/container-compose +++ b/container-compose @@ -92,3 +92,18 @@ yq() { } +# Read and print service name, platform, and image +services=$(yq e '.services | keys | .[]' "$file") + +for service in $services; do + platform=$(yq e ".services.$service.platform" "$file") + image=$(yq e ".services.$service.image" "$file") + context=$(yq e ".services.$service.build.context" "$file") + dockerfile=$(yq e ".services.$service.build.dockerfile" "$file") + echo "Service: $service" + echo "Platform: $platform" + echo "Image: $image" + echo "Context: $context" + echo "Dockerfile: $dockerfile" + echo "---------------------" +done