Blueprints

Download a CSV file and start a Docker container to process it

About this blueprint

API CLI Docker

This flow will download a file and run a command in a Docker container. The file will be passed as an input to the Docker container, and the command will take the file as an argument. The list of commands can comprise of any shell commands, and the Docker container can be any image from Docker Hub or from a private registry.

yaml
id: docker_example
namespace: blueprints

tasks:
  - id: download
    type: io.kestra.plugin.fs.http.Download
    uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv

  - id: docker
    type: io.kestra.plugin.scripts.shell.Commands
    inputFiles:
      data.csv: "{{ outputs.download.uri }}"
    docker:
      image: ubuntu:latest
    commands:
      - tail -n +2 data.csv | wc -l

Download

Commands

New to Kestra?

Use blueprints to kickstart your first workflows.

Get started with Kestra