Dagweave catalog

Gzip a file

gzip-compressv1.0.0updated 2026-07-161 version

Compress a local file or artifact with gzip, writing the result to a destination path.

Install v1.0.0

Installs the template into your Argo namespace. The URL is pinned to this version.

kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/gzip-compress/1.0.0/template.yaml

Or with the Argo CLI:

argo template create -n argo https://catalog.dagweave.com/api/v1/items/gzip-compress/1.0.0/template.yaml

Facts

Category
Data
Tags
busybox data
Entrypoint
compress
Template SHA-256
bf35eb44c9990a91afb93584a03fd2dfc707315b1dd053806c7776c30b6988d4
Source
gzip-compress at catalog commit 67458f7
API
item document, latest template.yaml

Images and provenance

Every image is pinned by digest, so a rebuilt tag can never change what this version runs.

RepositoryTagDigest
busybox1.38.0sha256:a46257e06c82ad85242d0d38077d0a52d9896389ca60a1a59d3463db586e5fa4

Parameters

NameDescriptionDefault
dest-path required Local path to write the gzipped output to.
Example /data/export.csv.gz
none
source-path required Local path of the file to compress.
Example /data/export.csv
none

WorkflowTemplate

Download template.yaml

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: gzip-compress
  labels:
    dagweave.io/catalog-item: gzip-compress
  annotations:
    # The catalog semver this manifest was authored at. The dagweave app records
    # (catalog-item-id, semver) -> content-hash -> base-vN when it mints the tenant
    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.
    dagweave.io/catalog-version: "1.0.0"
    dagweave.io/catalog-category: "Data"
spec:
  entrypoint: compress
  templates:
    - name: compress
      inputs:
        parameters:
          # Local path of the file to compress.
          - name: source-path
          # Local path to write the gzipped output to.
          - name: dest-path
      container:
        # Pinned by digest per the catalog convention: an image rebuild can never
        # silently change the behaviour of an already-released item version.
        # busybox:1.38.0
        image: busybox@sha256:a46257e06c82ad85242d0d38077d0a52d9896389ca60a1a59d3463db586e5fa4
        command: [sh, -c]
        # Values are passed as env vars (below), never interpolated into the shell,
        # so a path containing shell metacharacters is safe; each $VAR is referenced
        # double-quoted.
        args:
          - |
            set -eu
            gzip -c "${SOURCE_PATH}" > "${DEST_PATH}"
        env:
          - name: SOURCE_PATH
            value: "{{inputs.parameters.source-path}}"
          - name: DEST_PATH
            value: "{{inputs.parameters.dest-path}}"

Version history

Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.

  1. 1.0.0 latest 2026-07-16

    Initial release.

    kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/gzip-compress/1.0.0/template.yaml
    argo template create -n argo https://catalog.dagweave.com/api/v1/items/gzip-compress/1.0.0/template.yaml

    version document, template.yaml

Run it once

After installing, from the command line.

argo submit -n argo --from workflowtemplate/gzip-compress \
  -p dest-path=/data/export.csv.gz \
  -p source-path=/data/export.csv

Workflow that references it

A Workflow with the required parameters filled from the examples.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: gzip-compress-
spec:
  workflowTemplateRef:
    name: gzip-compress
  arguments:
    parameters:
      - name: dest-path
        value: "/data/export.csv.gz"
      - name: source-path
        value: "/data/export.csv"

As a step of a larger workflow

steps:
  - - name: gzip-compress
      templateRef:
        name: gzip-compress
        template: compress