【发布时间】:2018-05-17 22:59:41
【问题描述】:
对 CI 系统设置非常陌生,所以请温柔:)
我正在关注 Stark And Wayne tutorial 并试图让 Concourse CI 任务 yml 运行它通过输入文件夹找到的 shell 脚本:
task.yml
---
platform: linux
image_resource:
type: docker-image
source: {repository: busybox}
inputs:
- name: my-input-folder
run:
path: ./my-input-folder/my-shell-script.sh
所以当我跑步时:
fly --target team-name execute --config task.yml -i my-input-folder=my-input-folder
它应该进入那个文件夹,操作my-shell-script.sh 并回显那里的this is working。
相反,我得到:
hijack: Backend error: Exit status: 500, message: {"Type":"","Message":"runc exec: exit status 1: exec failed: container_linux.go:264: starting container process caused \"exec: \\\"./__tests__/this-is-my-shell-script.sh\\\": permission denied\"\n","Handle":""}
我知道这是与 docker/busybox 图像from this other thread 相关的东西。
但是……
a) 为什么它在他们的教程中使用相同的.sh 扩展和busybox 图像? (但是当我在实际项目中使用它时不是?)
b) 我怎样才能解决这个问题,以便我的项目运行 shell 脚本?哪个 docker 镜像可以工作?
【问题讨论】:
标签: javascript continuous-integration yaml concourse