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文件中的不一致,尽管 –
不是很明确的错误信息啊,你是否修复了它? –