【发布时间】:2019-12-24 01:11:00
【问题描述】:
我的 Spring Boot 中有一个简单的 Dockerfile,如下所示。我能够在本地成功构建映像,并且可以使用我的凭据进行推送。
但是每次尝试自动构建时,我的构建都会失败。
FROM openjdk:8-jdk-alpine LABEL maintainer="xxxxx@xxx.com" VOLUME /tmp EXPOSE 8080 ARG JAR_FILE=target/jollof.jar ADD ${JAR_FILE} jollof.jar ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","- jar","/jollof.jar"]
从 docker hub,我从日志中得到了这个。
Building in Docker Cloud's infrastructure... Cloning into '.'... Warning: Permanently added the RSA host key for IP address 'xxx.xx.xxx.xxx' to the list of known hosts. .... .... Step 6/7 : ADD ${JAR_FILE} jollof.jar ADD failed: stat /var/lib/docker/tmp/docker- builder674045875/target/jollof.jar: no such file or directory
【问题讨论】:
-
这和编程有关系吗?我的意思是我无法理解。
-
@GauravMall yes ...代码部署,或者称之为devOps。
-
哦,是的,您使用的是
BitBucket。没注意到:)
标签: java spring-boot docker bitbucket devops