{
  "name": "gzip-compress",
  "title": "Gzip a file",
  "category": "Data",
  "tags": [
    "busybox",
    "data"
  ],
  "version": "1.0.0",
  "date": "2026-07-16",
  "notes": "Initial release.",
  "latest": true,
  "installable": true,
  "url": "https://catalog.dagweave.com/api/v1/items/gzip-compress/1.0.0.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/gzip-compress/1.0.0/template.yaml",
  "entrypoint": "compress",
  "parameters": [
    {
      "name": "dest-path",
      "title": "Destination path",
      "description": "Local path to write the gzipped output to.",
      "type": "string",
      "required": true,
      "example": "/data/export.csv.gz"
    },
    {
      "name": "source-path",
      "title": "Source path",
      "description": "Local path of the file to compress.",
      "type": "string",
      "required": true,
      "example": "/data/export.csv"
    }
  ],
  "images": [
    {
      "ref": "busybox@sha256:a46257e06c82ad85242d0d38077d0a52d9896389ca60a1a59d3463db586e5fa4",
      "repository": "busybox",
      "tag": "1.38.0",
      "digest": "sha256:a46257e06c82ad85242d0d38077d0a52d9896389ca60a1a59d3463db586e5fa4"
    }
  ],
  "install": {
    "kubectl": "kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/gzip-compress/1.0.0/template.yaml",
    "argo": "argo template create -n argo https://catalog.dagweave.com/api/v1/items/gzip-compress/1.0.0/template.yaml"
  },
  "template": "apiVersion: argoproj.io/v1alpha1\nkind: WorkflowTemplate\nmetadata:\n  name: gzip-compress\n  labels:\n    dagweave.io/catalog-item: gzip-compress\n  annotations:\n    # The catalog semver this manifest was authored at. The dagweave app records\n    # (catalog-item-id, semver) -\u003e content-hash -\u003e base-vN when it mints the tenant\n    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.\n    dagweave.io/catalog-version: \"1.0.0\"\n    dagweave.io/catalog-category: \"Data\"\nspec:\n  entrypoint: compress\n  templates:\n    - name: compress\n      inputs:\n        parameters:\n          # Local path of the file to compress.\n          - name: source-path\n          # Local path to write the gzipped output to.\n          - name: dest-path\n      container:\n        # Pinned by digest per the catalog convention: an image rebuild can never\n        # silently change the behaviour of an already-released item version.\n        # busybox:1.38.0\n        image: busybox@sha256:a46257e06c82ad85242d0d38077d0a52d9896389ca60a1a59d3463db586e5fa4\n        command: [sh, -c]\n        # Values are passed as env vars (below), never interpolated into the shell,\n        # so a path containing shell metacharacters is safe; each $VAR is referenced\n        # double-quoted.\n        args:\n          - |\n            set -eu\n            gzip -c \"${SOURCE_PATH}\" \u003e \"${DEST_PATH}\"\n        env:\n          - name: SOURCE_PATH\n            value: \"{{inputs.parameters.source-path}}\"\n          - name: DEST_PATH\n            value: \"{{inputs.parameters.dest-path}}\"\n",
  "templateSha256": "bf35eb44c9990a91afb93584a03fd2dfc707315b1dd053806c7776c30b6988d4",
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/gzip-compress",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
