微信云托管官网
[图片]
【微信云托管】管理后台,创建一个托管服务,然后进入到服务的【镜像仓库】,根据指引设置密码。然后根据指引进行登录,总是无法成功。手工登录【腾讯云】后台,查看镜像相关服务,也没看到对应的实例。
我测试了官方的教程,是可以的。但是自己的老是部署失败。 以下是docker的日志: 2021-07-05 15:24:57 create_version_describe_cluster : succ, 2021-07-05 15:24:57 create_version_check_vpc : succ, 2021-07-05 15:25:00 create_build_image : succ, 2021-07-05 15:25:00 check_build_image : succ, , [2021-07-05 15:25:41] + docker push ccr.ccs.tencentyun.com/tcb-******-ricf/voice1-6gjzp1us58e7ddf3_backtest:backtest-007-1625469896 [2021-07-05 15:25:41] The push refers to repository [ccr.ccs.tencentyun.com/tcb-******-ricf/voice1-6gjzp1us58e7ddf3_backtest] [2021-07-05 15:25:41] 96fc7c114884: Preparing [2021-07-05 15:25:41] 2bac564fad74: Preparing [2021-07-05 15:25:41] 23aa0ef6de9e: Preparing [2021-07-05 15:25:41] abbd1e0c6d6b: Preparing [2021-07-05 15:25:41] 8dd62b771c62: Preparing [2021-07-05 15:25:41] 2138286d3aea: Preparing [2021-07-05 15:25:41] 537313a13d90: Preparing [2021-07-05 15:25:41] 764055ebc9a7: Preparing [2021-07-05 15:25:41] 764055ebc9a7: Layer already exists [2021-07-05 15:25:41] 537313a13d90: Layer already exists [2021-07-05 15:25:41] 8dd62b771c62: Layer already exists [2021-07-05 15:25:41] 2138286d3aea: Layer already exists [2021-07-05 15:25:41] abbd1e0c6d6b: Layer already exists [2021-07-05 15:25:42] 23aa0ef6de9e: Pushed [2021-07-05 15:25:46] 96fc7c114884: Pushed [2021-07-05 15:26:08] 2bac564fad74: Pushed [2021-07-05 15:26:10] backtest-007-1625469896: digest: sha256:8e7b24fa58bc1fbb2ec0ec79e0d9dc7dd19e3caad711d9d5894be5a3d2bc366c size: 2000 -----------服务backtest部署backtest-007----------- 2021-07-05 15:26:13 create_eks_virtual_service : succ, 2021-07-05 15:26:13 check_eks_virtual_service : succ, Back-off restarting failed container, AssumePod failed: pod 46eea07a-dd62-11eb-8e42-42a067703286 is in the cache, so can't be assumed; Successfully assigned default/backtest-007-7749f957b8-t6956 to eklet-subnet-e8dbv5qv; Starting pod sandbox eks-infbu3lh; Sync endpoints; Pulling image "ccr.ccs.tencentyun.com/tcb-100007991978-ricf/voice1-6gjzp1us58e7ddf3_backtest:backtest-007-1625469896"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb-100007991978-ricf/voice1-6gjzp1us58e7ddf3_backtest:backtest-007-1625469896" in 22.174537779s; Created container backtest-007; Started container backtest-007; Container image "ccr.ccs.tencentyun.com/tcb-100007991978-ricf/voice1-6gjzp1us58e7ddf3_backtest:backtest-007-1625469896" already present on machine; Back-off restarting failed container 这是我的Dockerfile: # 使用官方 Python 轻量级镜像 # https://hub.docker.com/_/python FROM python:3.8-slim # 将本地代码拷贝到容器内 ENV APP_HOME /app WORKDIR $APP_HOME COPY . ./ # 安装依赖 RUN pip install Flask==1.1.2 gunicorn==20.1.0 xlsxwriter==1.2.8 sqlalchemy==1.3.17 # 启动 Web 服务 # 这里我们使用了 gunicorn 作为 Server,1 个 worker 和 8 个线程 # 如果您的容器实例拥有多个 CPU 核心,我们推荐您把线程数设置为与 CPU 核心数一致 CMD exec gunicorn --bind :80 --workers 1 --threads 8 --timeout 0 main:app 事实上,和官网的教程中给的Dockerfile一模一样,只是由于有excel和数据库需求,加了两个库。 以下是main.py的部分代码: if __name__=='__main__': app.run( debug=True, host='0.0.0.0', port=80 ) 下面是我文件夹目录: PS F:\WeChatProjects\FiveNotesSqlalchemy> tree /f 文件夹 PATH 列表 卷序列号为 4FA9-A3BE F:. .dockerignore .gitignore 0021.mp3 0031.mp3 0041.mp3 1001.mp3 1002.mp3 2001.mp3 2002.mp3 3001.mp3 3002.mp3 4001.mp3 5001.mp3 5002.mp3 6000.mp3 Dockerfile insert.py main.py problemlog.txt query.py tables.py tools.py update.py 没有子文件夹 谢谢!
-----------服务test-service部署test-service-001----------- 2021-07-04 17:48:23 create_version_check_vpc : succ, 2021-07-04 17:48:23 create_version_describe_cluster : succ, cluster is nil 2021-07-04 17:48:28 create_version_create_eks : succ, 2021-07-04 17:48:31 create_version_check_eks : succ, 2021-07-04 17:50:21 create_version_adjust_pod_quota : succ, 2021-07-04 17:50:22 create_version_free_quota : succ, 2021-07-04 17:50:24 create_eks_virtual_service : succ, 2021-07-04 17:50:24 check_eks_virtual_service : process, , Successfully assigned default/test-service-001-559d76db9c-5dn9x to eklet-subnet-gn6a05x1; Starting pod sandbox eks-f8lrir4l; Sync endpoints; MountVolume.SetUp failed for volume "tcb-wx-access-token" : secret "tcb-wx-access-token" not found; Unable to attach or mount volumes: unmounted volumes=[tcb-wx-access-token], unattached volumes=[tcb-wx-access-token default-token-wf7qm]: timed out waiting for the condition; Pulling image "ccr.ccs.tencentyun.com/tcb-1060060644-thpj/cloudrun-dev-5gi8mktddcc457e5_test-service:test-service-20210704174739-0"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb-1060060644-thpj/cloudrun-dev-5gi8mktddcc457e5_test-service:test-service-20210704174739-0" in 7.038474919s; Created container test-service-001; Started container test-service-001; Readiness probe failed: dial tcp 10.0.96.11:7001: connect: connection refused;
-----------构建yuzitongpao-006----------- 2021-07-04 14:06:06 create_version_describe_cluster : succ, 2021-07-04 14:06:06 create_version_check_vpc : succ, 2021-07-04 14:06:08 check_build_image : succ, , [2021-07-04 14:09:02] + docker push ccr.ccs.tencentyun.com/tcb-******-aapr/zaixianhuodong-jiyua-9bfeb2c1167_yuzitongpao:yuzitongpao-006-1625378765 [2021-07-04 14:09:02] The push refers to repository [ccr.ccs.tencentyun.com/tcb-******-aapr/zaixianhuodong-jiyua-9bfeb2c1167_yuzitongpao] [2021-07-04 14:09:02] 9b564539e7cd: Preparing [2021-07-04 14:09:02] 5e33f233d983: Preparing [2021-07-04 14:09:02] 37a3b182f2dd: Preparing [2021-07-04 14:09:02] d8bce6b1f228: Preparing [2021-07-04 14:09:02] 8da9389238c1: Preparing [2021-07-04 14:09:02] 7b37327d0350: Preparing [2021-07-04 14:09:02] 8a82d90bf4fd: Preparing [2021-07-04 14:09:02] a61e64713f61: Preparing [2021-07-04 14:09:02] c0b283b18a06: Preparing [2021-07-04 14:09:02] 0586d9cce1ac: Preparing [2021-07-04 14:09:02] 48286fbe1b87: Preparing [2021-07-04 14:09:02] f22adfb1c0f3: Preparing [2021-07-04 14:09:02] 9a5d14f9f550: Preparing [2021-07-04 14:09:02] 48286fbe1b87: Waiting [2021-07-04 14:09:02] f22adfb1c0f3: Waiting [2021-07-04 14:09:02] 9a5d14f9f550: Waiting [2021-07-04 14:09:03] 0586d9cce1ac: Layer already exists [2021-07-04 14:09:03] 48286fbe1b87: Layer already exists [2021-07-04 14:09:03] f22adfb1c0f3: Layer already exists [2021-07-04 14:09:03] 9a5d14f9f550: Layer already exists [2021-07-04 14:09:04] 7b37327d0350: Pushed [2021-07-04 14:09:04] 5e33f233d983: Pushed [2021-07-04 14:09:04] c0b283b18a06: Pushed [2021-07-04 14:09:04] 8a82d90bf4fd: Pushed [2021-07-04 14:09:04] a61e64713f61: Pushed [2021-07-04 14:09:05] 37a3b182f2dd: Pushed [2021-07-04 14:09:05] d8bce6b1f228: Pushed [2021-07-04 14:09:12] 9b564539e7cd: Pushed [2021-07-04 14:09:50] 8da9389238c1: Pushed [2021-07-04 14:09:50] yuzitongpao-006-1625378765: digest: sha256:085c95f23f67c87f5820f81610d7b5f38cbb84e102b3829754d382c98487bd2d size: 3043 -----------服务yuzitongpao部署yuzitongpao-006----------- 2021-07-04 14:06:08 create_build_image : succ, 2021-07-04 14:09:52 check_eks_virtual_service : process, Readiness probe failed: dial tcp 10.0.0.7:8001: connect: connection refused, AssumePod failed: pod 72017be3-dc8e-11eb-954e-16a81839889f is in the cache, so can't be assumed; Successfully assigned default/yuzitongpao-006-6dbbd7b9b-2jv98 to eklet-subnet-63itr5fh; Starting pod sandbox eks-ib1w6xcv; Sync endpoints; Pulling image "ccr.ccs.tencentyun.com/tcb-100016969891-aapr/zaixianhuodong-jiyua-9bfeb2c1167_yuzitongpao:yuzitongpao-006-1625378765"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb-100016969891-aapr/zaixianhuodong-jiyua-9bfeb2c1167_yuzitongpao:yuzitongpao-006-1625378765" in 42.267619012s; Created container yuzitongpao-006; Started container yuzitongpao-006; Readiness probe failed: dial tcp 10.0.0.7:8001: connect: connection refused; Container image "ccr.ccs.tencentyun.com/tcb-100016969891-aapr/zaixianhuodong-jiyua-9bfeb2c1167_yuzitongpao:yuzitongpao-006-1625378765" already present on machine; 2021-07-04 14:09:52 create_eks_virtual_service : succ, 报错日志如上 请帮忙看看,是什么原因导致的
如题
[图片]
https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/basic/wxinfo.html 文档里面说可以获取 容器内微信信息请求 header在容器内收到的从小程序端或已登录的 web 端发起的请求 header 中,有以下包含微信信息的 header,其中包括 openid 等用户信息。 ======== 这里是“容器内”是什么意思呢?是只能在小程序下么? 我想通过用户访问某个URL就获取unionid,我该如何做呢?
请教一下,免鉴权获取openid和unionid是只能在小程序下才能获取么?公众号网页是否也可以免鉴权获取呢?
Warning: require(/var/www/html/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/index.php on line 17 Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/index.php on line 17 vendor/autoload.php文件是存在的,但是访问报错说文件找不到?。
因为目前的项目,需要有唯一的容器来跑一些脚本。所以想了解下是否有api查询当前容器的唯一标识啥的,从而保证脚本运行是唯一的,不会在其他容器里重复允许
是否有海外地区的支持?
如题
没有。
我们的业务涉及小程序、公众号、PC Web、APP,请问云托管开发者开发的接口目前支持后面两种吗?是否开放公网可请求的 api?