问题描述
我写了一个python脚本,该脚本只捕获股票数据,并在CLI中将符号作为参数,可以很好地进行docker化,但是我如何将其扩展到100个或更多同时构建并运行的容器,每个都有唯一的论点?以下是一些伪代码,它们显示了我正在尝试实现的目标:
For symbol in df_NYSE.iterrows():
build image with unique name..ie grab-stock-price-AMD (if argument passed is "--symbol AMD")
store each image name in a list
start each image in the list with the symbol variable in this for loop
这是Kubernetes的任务吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)