incalculable-grass-76623
07/19/2022, 2:33 AMexperimental_shell_command
I am new to pants, so something may be obvious but I can seem to get it.
I am using experimental_shell_command
to "run a docker image", built in a preious step, that has tooling inside of it. think like code generation.
How do I "run" the experimental_shell_command
task, as a goal or other ..
eg:
experimental_shell_command(
command="docker run --rm -t -v `pwd`:/v --workdir /v schema-tooling sh -c 'echo 1 > results.log'",
tools=["docker"],
dependencies=["datamodel/schema-tooling:schema-tooling"],
outputs=["results.log"],
)
witty-crayon-22786
07/19/2022, 3:25 AMexperimental_run_shell_command
for that: see https://www.pantsbuild.org/docs/run-shell-commands for the differenceincalculable-grass-76623
07/19/2022, 4:28 AM./pants run <path>