我试图为我的scala项目使用Github操作,并为它创建了一个Docker工作流。基本上,我正在尝试将sbt安装到我的容器中并运行该项目。
Dockerfile如下所示:
FROM centos:centos8
ENV SCALA_VERSION 2.13.1
ENV SBT_VERSION 1.5.2
RUN yum install -y epel-release
RUN yum update -y && yum install -y wget
# INSTALL JAVA
RUN yum install -y java-11-openjdk
# INSTALL SBT
RUN wget http://dl.bintray.com/sbt/rpm/sbt-${SBT_VERSION}.rpm
RUN yum install -y sbt-${SBT_VERSION}.rpm
RUN wget -O /usr/local/bin/sbt-launch.jar http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/$SBT_VERSION/sbt-launch.jar
WORKDIR /root
EXPOSE 8080
RUN sbt compile
CMD sbt run但是,当我推任何东西时,我会得到以下错误:
The command '/bin/sh -c wget http://dl.bintray.com/sbt/rpm/sbt-${SBT_VERSION}.rpm' returned a non-zero code: 8当我手动检查链接(通过设置sbt版本)时,我确实看到bin托盘响应了403个禁止的错误,但是status.bintray.com告诉所有系统都是可操作的。
我是做错什么了还是绑定盘出了什么问题?
发布于 2021-10-15 12:54:08
禁止并不意味着不可操作。我认为url是不正确的,因为它不是托管在bin托盘上,而是jfrog,请参阅Centos中的以下部分:
删除旧的Bintray回购文件
https://www.scala-sbt.org/1.x/docs/Installing-sbt-on-Linux.html
https://stackoverflow.com/questions/69577786
复制相似问题