在基于Alpine Docker的Image下运行gitlab-ci.yml脚本时出错

时间:2017-05-04 21:10:37

标签: docker gitlab dockerfile gitlab-ci gitlab-ci-runner

因此,我需要在使用Gitlab CI运行部署作业时运行ssh。我使用 if (ctx->codec_id == AV_CODEC_ID_H264){ av_opt_set(ctx->priv_data, "gpu", "any", 0); } 泊坞窗图片。

但是,我不能。因为抛出了这个错误。

https://hub.docker.com/r/nmfzone/ssh-client-light/

我该如何解决?

在构建Checking out 32af65e1 as development... Skipping Git submodules setup Unknown cipher type 'if [ -x /usr/local/bin/bash ]; then exec /usr/local/bin/bash elif [ -x /usr/bin/bash ]; then exec /usr/bin/bash elif [ -x /bin/bash ]; then exec /bin/bash elif [ -x /usr/local/bin/sh ]; then exec /usr/local/bin/sh elif [ -x /usr/bin/sh ]; then exec /usr/bin/sh elif [ -x /bin/sh ]; then exec /bin/sh else echo shell not found exit 1 fi 图像时,我在Dockerfile中使用了此配置。

https://hub.docker.com/r/nmfzone/ssh-client-light/

2 个答案:

答案 0 :(得分:1)

使用gitlab的ssh执行器或将docker的入口点更改为正确的shell并在脚本中运行ssh。 Gitlab的docker runner不支持入口点,而不是shell。

答案 1 :(得分:1)

对于遇到此问题的人,如果您安装了bash shell,则需要在Dockerfile中使用类似的东西。

ENTRYPOINT ["/bin/bash", "-c"]
相关问题