2
我有,我想在我的本地廣場實例執行簡單的任務:飛執行本地主機上失敗
集結frontend.yml
---
platform: linux
image_resource:
type: docker-image
source:
repository: node
tag: 'latest'
inputs:
- name: client-devops
run:
path: client-devops/scripts/test
執行任務:
client-devops daka$ fly -t frontend execute --config build-frontend.yml
executing build 1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8080: Connection refused
gzip: invalid magic
tar: Child returned status 1
tar: Error is not recoverable: exiting now
exit status 2
可用目標:
client-devops daka$ fly targets
name url expiry
frontend http://127.0.0.1:8080 Fri, 11 Nov 2016 09:13:55 UTC
爲什麼說不能連接到本地主機,我可以從我的瀏覽器連接到用戶界面?
有趣的 - 我建議使用像'tcpdump'和'netcat'這樣的工具來解決連接到'localhost:8080'的問題。 Concourse有可能綁定到不同的接口嗎? –
這可能是YAML文件中的不一致,儘管 –
不是很明確的錯誤信息啊,你是否修復了它? –