[英]How to add extra linux dependencies into a spring-boot buildpack image?
[英]Some unresolved dependencies have extra attributes
我使用下面的 dockerfile 來構建 play-samples-play-scala-hello-world-tutorial( https://github.com/playframework/play-samples/tree/2.8.x/play-scala-hello-world-tutorial )我想通過 dockerfile 構建教程,但出現下載問題等錯誤。 我想知道這是 .network 還是 dockerfile 的問題。
FROM openjdk:11
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV HULU_ENV=staging
ADD . /play-samples-play-scala-hello-world-tutorial
WORKDIR /play-samples-play-scala-hello-world-tutorial
RUN curl -L https://github.com/sbt/sbt/releases/download/v1.5.2/sbt-1.5.2.tgz -o sbt.tgz
RUN tar xf sbt.tgz
RUN ./sbt/bin/sbt clean stage
但在下面出現錯誤並且無法構建
docker build . -f Dockerfile
#11 0.595 copying runtime jar...
#11 69.16 [warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
#11 69.16 [warn] com.typesafe.sbt:sbt-js-engine:1.2.3 (scalaVersion=2.12, sbtVersion=1.0)
#11 69.16 [warn] org.foundweekends.giter8:sbt-giter8-scaffold:0.11.0 (sbtVersion=1.0, scalaVersion=2.12)
#11 69.16 [warn] com.typesafe.sbt:sbt-native-packager:1.5.2 (scalaVersion=2.12, sbtVersion=1.0)
#11 69.16 [warn] com.lightbend.sbt:sbt-javaagent:0.1.5 (scalaVersion=2.12, sbtVersion=1.0)
#11 69.16 [warn] com.typesafe.sbt:sbt-twirl:1.5.1 (scalaVersion=2.12, sbtVersion=1.0)
#11 69.16 [warn] com.typesafe.sbt:sbt-web:1.4.4 (scalaVersion=2.12, sbtVersion=1.0)
#11 69.16 [warn]
#11 69.16 [warn] Note: Unresolved dependencies path:
#11 69.25 [error] Error downloading org.foundweekends.giter8:sbt-giter8-scaffold;sbtVersion=1.0;scalaVersion=2.12:0.11.0
#11 69.25 [error] Not found
#11 69.25 [error] Not found
#11 69.25 [error] not found: https://repo1.maven.org/maven2/org/foundweekends/giter8/sbt-giter8-scaffold_2.12_1.0/0.11.0/sbt-giter8-scaffold-0.11.0.pom
#11 69.25 [error] not found: /root/.ivy2/localorg.foundweekends.giter8/sbt-giter8-scaffold/scala_2.12/sbt_1.0/0.11.0/ivys/ivy.xml
#11 69.25 [error] download error: Caught javax.net.ssl.SSLHandshakeException (Remote host terminated the handshake) while downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.foundweekends.giter8/sbt-giter8-scaffold/scala_2.12/sbt_1.0/0.11.0/ivys/ivy.xml
#11 69.25 [error] download error: Caught javax.net.ssl.SSLHandshakeException (Remote host terminated the handshake) while downloading https://repo.typesafe.com/typesafe/ivy-releases/org.foundweekends.giter8/sbt-giter8-scaffold/scala_2.12/sbt_1.0/0.11.0/ivys/ivy.xml
任何幫助表示贊賞!
相關錯誤是:
下載錯誤:在下載https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.foundweekends.giter8/sbt-giter8-時捕獲 javax.net.ssl.SSLHandshakeException(遠程主機終止握手) 腳手架/scala_2.12/sbt_1.0/0.11.0/ivys/ivy.xml
SBT 由於某些 HTTPS 問題無法連接到存儲庫以下載依賴項。
這可能是由多種原因引起的,要么是因為您的容器沒有適當的證書,要么是因為您在公司代理后面運行並且它弄亂了證書。
您應該能夠通過搜索SSLHandshakeException
錯誤找到更多幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.