[Bug]: Doesn't work behind proxy since 1.20.0 (1.20.1 too)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- docker, java
- 领域
- devops, testing-qa
调研方向
在所描述的 Jenkins 环境中使用 Oracle 容器和已配置的代理,重现从 1.19.8 升级到 1.20.x 的过程。比较不同版本之间的依赖行为,并通过在代理后成功启动容器来确认修复有效。
由索引模型根据 Issue 内容生成。
描述
Module
Core
Testcontainers version
1.20.0
Using the latest Testcontainers version?
Yes
Host OS
Linux OL8
Host Arch
x86
Docker version
20.10.21
What happened?
When we upgrade the testcontainers version from 1.19.8 to 1.20.* our container (oracle free database) doesn't start anymore.
We usually use the docker image from Oracle container registry like this :
private static final DockerImageName oracleFreeImage = DockerImageName
.parse("container-registry.oracle.com/database/free:23.3.0.0")
.asCompatibleSubstituteFor("gvenzl/oracle-free");
We tried without success to use the one from testcontainers :
public static OracleContainer oracleContainer = new OracleContainer("gvenzl/oracle-free:23.4-slim-faststart")
The behaviour is always the same in Jenkins (maven 3.6.2) :
[ERROR] MyTestClass.theTest » NoClassDefFound
It works perfectly on local machine (Windows 10, maven 3.6.2).
The Jenkins jobs runs on OL8 machine behind an enterprise proxy. The credentials are configured in
/etc/systemd/system/docker.service.d/http-proxy.conf
like that
[Service]
Environment="HTTP_PROXY=http://myuser:[email protected]:3128"
Environment="HTTPS_PROXY=http://myuser:[email protected]:3128"
Environment="NO_PROXY=localhost,127.0.0.0/8,mycompany.com,local"
This was working with 1.19.8 and 1.19.7.
I tried to force environment variables with .withEnv("HTTP_PROXY... It had no effect.
I guess this bug comes from a dependency but I didn't manage to find which incriminate.
I can help to run any workaround if you need me.
Regards
Relevant log output
unfortunately nothing
Additional Information
No response
- 主要语言
- Java
- 星标
- 8.8k
- 派生
- 2k
- 平均合并
- 5 天 21 小时
- 30 天内合并 PR
- 15
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
testcontainers/testcontainers-java 的其他 Issue
-
[Bug]: withStartupTimeout() changes the startup timeout of all containers that use the default wait strategy可能已有人在做 @aymenjamaaoui 于 1 天前认领。 未关闭type/bug
难度 2/5 1-3 小时 新手友好度 64/100
testcontainers/testcontainers-java#12171 ·
维护者通常 1 天内回复
-
[Enhancement]: Document why singleton containers are required under Spring's test context caching可能已有人在做 @zakaullah075 于 95 天前认领。 未关闭type/enhancement
难度 1/5 1 小时以内 新手友好度 85/100
testcontainers/testcontainers-java#11967 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: Cannot reuse Selenium BrowserWebDriverContainers under Linux可能已有人在做 @kdelay 于 116 天前认领。 未关闭type/bug
难度 2/5 1-3 小时 新手友好度 78/100
testcontainers/testcontainers-java#11941 ·
维护者通常 1 天内回复
-
[Bug]: DockerDesktopClientProviderStrategy is always applicable可能已有人在做 @seonwooj0810 于 165 天前认领。 未关闭type/bug
难度 2/5 1-3 小时 新手友好度 74/100
testcontainers/testcontainers-java#11829 · 1 条评论 ·
维护者通常 1 天内回复
-
[Enhancement]: cleanup document after removing junit4 support可能已有人在做 @SJvaca30 于 173 天前认领。 未关闭type/enhancement
难度 2/5 1-3 小时 新手友好度 65/100
testcontainers/testcontainers-java#11578 ·
维护者通常 1 天内回复
查看 testcontainers/testcontainers-java 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
SAP/ai-sdk-java#1206 ·
维护者通常 1 天内回复
-
enhancement good first issue insight-module
难度 2/5 1-3 小时 新手友好度 86/100
sdlc-pro/spring-lens#606 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
apache/cloudstack#14719 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
apache/maven-surefire#3605 ·
维护者通常 1 天内回复