我想部署一个运行Procfile的应用程序
web: node myapp.js
Run Code Online (Sandbox Code Playgroud)
myapp.js用于phantomjs-node运行无头webkit的东西,将结果返回给浏览器请求.这可能吗?
我正在尝试texlive-full通过制作自定义buildpack来在heroku 上安装软件包.我正在研究django应用程序,所以我目前正在使用heroku-buildpack-python(https://github.com/heroku/heroku-buildpack-python)的版本.
根据本教程:https:
//devcenter.heroku.com/articles/buildpack-binaries
我在http://packages.ubuntu.com/lucid/texlive-binaries上找到了texlive的二进制包(右栏中的链接 - 下载源包)并在部分#Build time中的python默认heroku buildpack中添加了这些代码行,以便在heroku上提取并安装texlive-full.
# Build Time
# Switch to the repo's context.
cd $BUILD_DIR
TEXLIVE_BINARY="http://archive.ubuntu.com/ubuntu/pool/main/t/texlive-base/texlive-base_2012.20120611-5.debian.tar.gz"
TEXLIVE_VENDOR="vendor/texlive"
# vendor awesome-vm
mkdir -p $1/$TEXLIVE_VENDOR
curl $TEXLIVE_BINARY -o - | tar -xz -C $1/$TEXLIVE_VENDOR -f -
Run Code Online (Sandbox Code Playgroud)
在将django应用程序推送到heroku后,我可以看到slug是58.0 MB大(之前只有10.0 MB),所以它可能已经添加了texlive-full二进制包(大约44 MB).然而,现场的乳胶方程仍未显示,出现同样的错误; (未安装texlive时出现)
/ latex的ValueError为公式返回代码32512:
有没有更简单的方法在heroku上安装texlive-full?或者在buildpack或任何其他类型的debian包中安装texlive-full的正确表示法是什么?
您是否设法在Heroku上设置节点+ nginx代理?
请你告诉我在你做"git push heroku master"之前你是如何组织目录结构和每个目录中的文件的?你使用哪个buildpack?
我每次做"git push heroku master"时都会收到"推送被拒绝,没有检测到Cedar支持的应用程序"的消息.我在"/ conf"目录中放了一个"nginx.conf.erb"文件.
谢谢.
我正在尝试在Heroku上安装OpenCV,所以我的Python Web应用程序可以使用OpenCV.我该怎么做呢?
谢谢!
我heroku-buildpack-php-tyler几天前安装在我的Heroku应用程序上,这一切似乎都运行良好.我通过运行以下命令安装它:
heroku config:set BUILDPACK_URL=git://github.com/iphoting/heroku-buildpack-php-tyler.git
Run Code Online (Sandbox Code Playgroud)
但是我现在想删除它.我尝试使用以下命令:
heroku config:unset BUILDPACK_URL=git://github.com/iphoting/heroku-buildpack-php-tyler.git
Run Code Online (Sandbox Code Playgroud)
但它返回以下错误消息:
取消设置BUILDPACK_URL = git://github.com/iphoting/heroku-buildpack-php-tyler.git并重新启动hnf-heroku ...失败
!没找到资源`
因为Heroku没有正式支持PHP,所以没有太多关于此的文档.那么如何卸载这个buildpack呢?
我刚开始使用HerokuCI.我有几个Selenium测试,所以我已经添加了buildpacks app.json.
{
"buildpacks": [
{ "url": "heroku/ruby" }
],
"environments": {
"test": {
"addons": ["heroku-postgresql:in-dyno", "heroku-redis:in-dyno"],
"buildpacks": [
{ "url": "heroku/ruby" },
{ "url": "https://github.com/notvad/heroku-buildpack-selenium" },
{ "url": "https://github.com/heroku/heroku-buildpack-chromedriver" },
{ "url": "https://github.com/heroku/heroku-buildpack-google-chrome" }
],
"env": {
"REDIS_PROVIDER": "REDIS_URL",
"RAILS_ENV": "test",
"RACK_ENV": "test",
"MALLOC_ARENA_MAX": 2,
"LANG": "en_US.UTF-8",
"TEST_API": 1
},
"scripts": {
"test-setup": "./bin/setup-cc-test-reporter",
"test": "./bin/test-with-cc-test-reporter"
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
这些不断重建以及所有依赖项.
-----> Selenium app detected
bash: /tmp/buildpacks/b5ae60a477f2ba582d00a4ba23348059d40dea69cea6d982947f7c6afa72d2b8d69252449d43cbcf97a23341fd57300a3fef3224ace95482e1c0deaf8a844e4d/export: No such file or directory
bash: /tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/export: No such file or …Run Code Online (Sandbox Code Playgroud) 建立:
在heroku中使用selenium时出现此错误:
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Run Code Online (Sandbox Code Playgroud)
我用Google搜索但没有运气.错误发生在此代码的最后一行.
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
UA = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36' \
'(KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'
DRIVER_PATH = '/app/.chromedriver/bin/chromedriver'
chrome_options = webdriver.ChromeOptions()
chrome_options.binary_location = '/app/.apt/usr/bin/google-chrome'
chrome_options.add_argument(f'--user-agent={UA}')
chrome_options.add_argument(f'--proxy-server=http://my_private_proxy.com:my_port')
chrome_options.add_argument('--disable-gpu')
chrome_options.add_argument('--no-sandbox')
chrome = webdriver.Chrome(executable_path=DRIVER_PATH, options=options)
Run Code Online (Sandbox Code Playgroud) 是否有一个相当于 Google 的 JIB 或 Node.JS 的 BuildPacks?
我的理解是 JIB 允许从项目的构建工具(如 Gradle 或 Maven)中构建 OCI 容器映像,作为开发人员,我们只需要在构建中包含一个插件,并且能够将应用程序打包到容器中并拥有 JIB实施将 Java 应用程序打包到容器中的所有最佳实践,而无需提出任何问题。
我四处搜索,但没有找到与 Node.JS 生态系统等效的东西。它应该可能只是进入节点开发人员时间依赖项,它会注意将我的 javascript/typescript Express.js 例如应用程序打包到 docker 容器或 OCI 映像中。
谢谢你,奥斯卡
TLDR: spring boot gradlebootBuildImage任务因 x509 证书验证错误而失败(由于 zscaler)。在哪里添加根证书?
信息
我们正在使用 spring boot (2.3) 的新“bootBuildImage”来构建 docker 镜像。
最近,我们的 IT 团队启用了“zscaler 无处不在”,它通过公司支持的“中间人”有效地路由所有 http 和 https 流量,即使用 DNS 来“网关/检查点”网络流量
错误
在此更改后,gradle 失败并显示 X509 证书验证错误:
2021-03-01T08:40:42.120-0600 [QUIET] [system.out] [creator] unable to request https://repo.
spring.io/release/org/springframework/cloud/spring-cloud-bindings/1.7.0/spring-cloud-bindings-1.7.0
.jar
2021-03-01T08:40:42.120-0600 [QUIET] [system.out] [creator] Get "https://repo.spring.io/release/org/springframework/cloud/spring-cloud-bindings/1.7.0/spring-cloud-bindings-1.7.0.jar": x509: certificate signed by unknown authority
202
Run Code Online (Sandbox Code Playgroud)
更多上下文
题
我知道应该能够在信任存储中安装 zscaler 根证书,但不清楚哪个信任存储?(以及文件系统上的哪个位置?)
我不清楚为什么'spring cloud download'失败,但其他下载成功,即这次下载成功:
2021-03-01T08:40:34.790-0600 [QUIET] …Run Code Online (Sandbox Code Playgroud) 我的 spring-boot projekts 使用 spring-boot-maven-plugin 及其构建映像目标在 bitbucket.org 上构建其 docker 映像。在管道上,我们总是收到以下 Maven 错误:
Docker API call to 'localhost:2375/v1.24/containers/create' failed with status code 403 "Forbidden"
Run Code Online (Sandbox Code Playgroud)
在docker日志中我发现了以下内容
time="2021-03-25T11:30:59Z" level=info msg="Container create request." ArgsEscaped=false AttachStderr=false AttachStdin=false AttachStdout=false ExposedPorts="map[]" Healthcheck="<nil>" Labels="map[author:spring-boot]" MacAddress= NetworkDisabled=false OnBuild="[]" OpenStdin=false StdinOnce=false StopSignal= StopTimeout="<nil>" Tty=false plugin=pipelines
time="2021-03-25T11:30:59Z" level=info msg="Container create request." AutoRemove=false BlkioDeviceReadBps="[]" BlkioDeviceReadIOps="[]" BlkioDeviceWriteBps="[]" BlkioDeviceWriteIOps="[]" BlkioWeight=0 BlkioWeightDevice="[]" CPUCount=0 CPUPercent=0 CPUPeriod=0 CPUQuota=0 CPURealtimePeriod=0 CPURealtimeRuntime=0 CPUShares=0 CapAdd="[]" CapDrop="[]" Capabilities="[]" Cgroup= CgroupParent= ConsoleSize="[0 0]" ContainerIDFile= CpusetCpus= CpusetMems= DNS="[]" DNSOptions="[]" DNSSearch="[]" DeviceCgroupRules="[]" Devices="[]" ExtraHosts="[]" …Run Code Online (Sandbox Code Playgroud) buildpack spring-boot spring-boot-maven-plugin bitbucket-pipelines paketo