小编Eti*_*ube的帖子

Docker 永远不会在 Azure 上运行 - 等待对容器预热请求的响应

我正在尝试在 Azure 的应用服务上部署一个 dockerized 应用程序。我正确输入了所有字段,我的图像被拉出,然后我不断收到此错误,直到出现超时。

Waiting for response to warmup request for container -<container name > Elapsed time = 154.673506 sec
Run Code Online (Sandbox Code Playgroud)

我确实设置了 WEBSITE_PORT 8080(由我的应用程序使用)

这是 dockerfile

FROM google/dart

WORKDIR /app
ADD pubspec.* /app/
RUN pub get --no-precompile
ADD . /app/
RUN pub get --offline --no-precompile

WORKDIR /app
EXPOSE 8080

ENTRYPOINT ["pub", "run", "aqueduct:aqueduct", "serve", "--port", "8080"]
Run Code Online (Sandbox Code Playgroud)

它工作正常。我昨晚让它工作了。我想刷新我的图像,所以我重新启动。没有任何效果。几个小时后,我删除了我的应用程序并重新开始......不走运。有任何想法吗?

编辑 1: 尝试将端口更改为 80,但不走运(这是我最初在正常工作时使用的端口)

已解决(部分)* 我将所有内容更改为 8000 端口。我意识到 Linux 和 Windows 不喜欢在 80 上进行非系统监听。因此,我更改了 8000 上的所有内容并在 Azure {WEBSITE_PORT, 8000} 上设置了系统属性。它现在似乎工作正常。我不知道这是否是官方修复...但它会在 30 秒后预热

containers azure docker azure-web-app-service

10
推荐指数
4
解决办法
1万
查看次数

尝试在 DockerFile 中 pip 安装私有存储库

我正在尝试安装自定义 Python 包以在 Flask 服务器中运行。服务器将位于 Docker 映像中。因此,我正在尝试进行某种操作,RUN pip install git+ssh://git@bitbucket.org:teamName/reponame.git@dev#egg=packageName 但是,我尝试过的任何方法都不起作用。

我已经尝试过我发现的两种格式:

1)git+ssh://git@bitbucket.org:teamName/reponame.git@dev#egg=packageName

2)git+ssh://bitbucket.org/team/reponame.git@dev#egg=packageName

这两种技术都会给出类似的错误:

fatal: Could not read from remote repository.

  Please make sure you have the correct access rights
  and the repository exists.
Run Code Online (Sandbox Code Playgroud)

或者

ssh: Could not resolve hostname bitbucket.org:TeamName: Name does not resolve
  fatal: Could not read from remote repository. 
Run Code Online (Sandbox Code Playgroud)

或者

root@bitbucket.org: Permission denied (publickey).
  fatal: Could not read from remote repository.
Run Code Online (Sandbox Code Playgroud)

即使我的公钥设置在 BitBucket 中

这是 Dockerfile:

 Use an official Python runtime as a …
Run Code Online (Sandbox Code Playgroud)

python git ssh pip docker

6
推荐指数
1
解决办法
6781
查看次数

如何在 Mat Chip Angular 中编辑 Mat Ripples 属性

我正在开发一个在数据表中使用垫子芯片的角度应用程序。但是,表中的数据存储在数据库中并通过 HTTP 调用进行检索。所以当我点击删除按钮时,涟漪会一直延伸到表格刷新并且它可以变得非常大。

有没有办法修改垫子芯片或其他角材料元素的波纹半径?我知道我可以禁用它,但修改半径是最好的。

html angular-material angular angular-material-6

2
推荐指数
1
解决办法
2581
查看次数