2016-10-19 26 views
0

我有一個包含此泊塢窗參數極光文件:極光:在泊塢窗未知模式參數

jobs = [ 
    Service(cluster = 'mesos-fr', 
     environment = 'devel', 
     role = 'root', 
     instances = 1, 
     name = 'frontend_service', 
     task = run_frontend_service, 
     container=Docker(image='frontend_service', parameters=[{'name': 'frontend_service'}, {'publish': '{{thermos.ports[http]}}:3000'}]) 
) 
] 

得到這個錯誤:

Error loading configuration: Unknown schema attribute publish 

是否有與連接主機端口的解決方案碼頭集裝箱港口?

回答

0

編輯:鬍鬚變量替換可能沒有幫助,因爲他們發生在容器出現後。

看起來你的Docker參數的形式有問題。一個正確的例子是container=Docker(image='nginx', parameters=[Parameter(name='env', value='HTTP_PORT={{thermos.ports[http]}')])

有一個Parameter對象,namevalue。值可以是帶鬍鬚變量的字符串(如端口),以便您可以將該東西扔到那裏。

本文檔(播音員對象下)也可能有幫助:http://aurora.apache.org/documentation/latest/reference/configuration/