当前位置: 首页 > 知识库问答 >
问题:

Jenkins Dockerfile-无法准备上下文:无法计算Dockerfile中的符号链接

郭元凯
2023-03-14

我在尝试使用“在Docker容器内构建”功能在Jenkins中构建一个项目时遇到了以下问题。

通过在工作区中构建用户用户名LastName开始/opt/bitnami/apps/jenkins/jenkins_home/jobs/app/workspace/opt/bitnami/Git/bin/Git rev-parse--is-inside-work-tree#timeout=10从远程Git存储库获取更改/opt/bitnami/Git/bin/Git config remote.origin.url https://github.com/pierreburgy/sails-app/opt/bitnami/Git config remote.origin.app t/bitnami/Git/bin/git-c core.askpass=true fetch--tags--progress https://github.com/pierreburgy/sails-app+refs/heads/:refs/remotes/origin//opt/bitnami/Git/bin/Git rev-parse refs/remotes/origin/master^{commit}#timeout=10/opt/bitnami/Git rev-parse refs/remotes/orig/orig/master^{commit}#/Origin/Master)/opt/bitnami/Git/bin/Git config core.sparsecheckout#timeout=10/opt/bitnami/Git/bin/Git checkout-f a6e83d91be393fd8d597829ce5f84b336AF1572b/opt/bitnami/git/bin/git rev-list a6e83d91be393fd8d597829ce5f84b336af1572b#timeout=10从./Dockerfile...$/opt/bitnami/apps/jenkins/jenkins_home/tools/org.jenkinsci.plugins.Docker.commons.tools.dockertool/Docker/bin/Docker Build--标签jobs/app/workspace无法准备上下文:无法计算Dockerfile中的符号链接路径:lstat/opt/bitnami/apache-tomcat/logs/Dockerfile:没有这样的文件或目录:无法从项目Dockerfile java.lang.runtimeexception:无法从com.cloudbees.jenkins.plugins.docker_build_env.Docker.buildImage(Docker.java:127)在gins.docker_build_env.dockerBuildWrapper.setup(dockerBuildWrapper.java:167)dson.model.build$buildexecution.dorun(build.java:156)在hudson.model.abstractBuild$abstractBuildExecution.run(abstractBuildExecution.run(abstractBuild.java:534)在hudson.model.run.execute(run.java:1738)在hudson.model.freestyleBuild.java:43)在hudson.model.freestyleBuild.run(run.java:43)在

以下是该项目的代码:https://github.com/pierreburgy/sails-app

你知道会有什么问题吗?

提前致谢

共有1个答案

寇甫
2023-03-14

您引用的GitHub项目没有实际安装SAILS的Dockerfile。下面是您提到的项目中Dockerfile的实际内容。

   FROM node
   RUN echo 'we are running some # of cool things'

下面是另一个您可以查看的项目:https://github.com/artificialio/docker-sails

 类似资料: