无法在openshift中构建应用程序

问题描述 投票:0回答:1

我们的容器应用程序基于图像:php:7.3.1-apache

Debian apt源文件说

deb http://deb.debian.org/debian stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb http://deb.debian.org/debian stretch-updates main

最近已实施了网络安全策略,因此在我们的环境中仅允许https通信。因此,我们的构建无法作为通过http的apt连接进行工作。是否有任何官方的https存储库可用于拉伸分发,我们可以在图像中使用它。我尝试在当前source.list文件中使用https更改http,但没有运气

debian openshift apt-get
1个回答
0
投票

安装apt-transport-https软件包。然后,您可以使用HTTPS。

注意:并非所有的Debian存储库都支持HTTPS。有些没有真正的SSL证书(自签名)。这对您来说可能是个问题。到目前为止,我发现HTTP端点发生了一些更新,这很奇怪。

© www.soinside.com 2019 - 2024. All rights reserved.