#6029 【BUG】When using ContainerTask as a task, how to pass a large number of input parameters into the image.
Issue created by
doLei-2001
### Motivation: Why do you think this is important?
There are two methods I know of now. One is to pass in parameters one by one,
python3 hello.py param1 param2
the second method is to pass in a FlyteFile,
{
paramA: xxx
}
and use with open in the image to open the file and read the content.
This is inconvenient. I hope to be able to directly pass in dict, or the passed in FlyteFile can directly retrieve the fields in the image without writing the logic of reading FlyteFIle.
### Goal: What should the final outcome look like, ideally?
I hope to be able to directly pass in dict, or the passed in FlyteFile can directly retrieve the fields in the image without writing the logic of reading FlyteFIle.
1. Get parameters directly from json
2. Get the parameters directly from FlyteFile,
param1 = input_file["param1"]
### Describe alternatives you've considered
The parameters are automatically passed into the image by Flyte, and can be directly obtained in the image
### Propose: Link/Inline OR Additional context
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flyte