-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-example.yaml
32 lines (29 loc) · 1.06 KB
/
docker-example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
id: docker-example
namespace: company.team
tasks:
- id: download
type: io.kestra.plugin.core.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 }}"
taskRunner:
type: io.kestra.plugin.scripts.runner.docker.Docker
containerImage: ubuntu:latest
commands:
- tail -n +2 data.csv | wc -l
extend:
title: Download a CSV file and start a Docker container to process it
description: 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.
tags:
- Docker
- CLI
- API
ee: false
demo: true
meta_description: "This flow will download a file and run a command in a Docker container. "