Horatiu Bota
05/17/2022, 9:09 PMCommand ["/bin/sh","-c","prefect execute flow-run"]
(however i need to run prefect in bash with a conda environment activated). Is there any way to configure the ECS task to remove the ["/bin/sh/", "-c",]
before the prefect command? My container is configured with the appropriate entrypoint, runs bash and activates conda at startup, but /bin/sh -c
undoes that setupflow.run_config = ECSRun(
task_definition_path="s3://<bucket>/task.yml",
run_task_kwargs={
"cluster": "test-prefect-cluster",
"overrides": {
"containerOverrides": [{
"name": "flow",
"command": ["echo hello", "prefect execute flow-run"]
}]
}
}
)
but no successKevin Kho
Horatiu Bota
05/17/2022, 9:38 PMdocker run -it image-tag
locally starts a shell with the conda env activatedKevin Kho
Horatiu Bota
05/17/2022, 9:45 PM/bin/sh: /bin/sh: cannot execute binary file
Kevin Kho
"/bin/sh"
is added because I think we just add the prefect execute flow run
hereHoratiu Bota
05/17/2022, 9:53 PM