Upv*_*ote 6 supervisord docker
我用docker run传递了两个env变量:
docker run -d --name foobar -e STAGE=testing -e STAGE_URL=http://...
以及启动两个进程的主管的dockerfile踢:
CMD ["/usr/bin/supervisord", "--configuration", "/etc/supervisor/conf.d/supervisord.conf"]
在supervisord.conf我尝试读取变量:
[program:build]
priority=1
autorestart=false
directory=/app/foobar
command=grunt build --force --stage ${STAGE} --stage-url ${STAGE_URL}
我也尝试过
$STAGE
和
%(STAGE)s
但是STAGE永远不会被视为变量.它永远不会被实际内容所取代.相反,它被视为一个简单的字符串.这导致:
--stage STAGE --stage-url STAGE_URL
代替
--stage testing --stage-url http://...
这甚至可能是我在做什么?主管文档不清楚这个主题.有任何想法吗?
| 归档时间: | 
 | 
| 查看次数: | 1760 次 | 
| 最近记录: |