testcontainers / testcontainers/testcontainers-java
[Bug]: Doesn't work behind proxy since 1.20.0 (1.20.1 too)
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 8.7k
- Fork
- 1.9k
- Merge medio
- 2g 17h
- PR unite (30g)
- 9
Descrizione
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:mypwd@proxy.mycompany.com:3128"
Environment="HTTPS_PROXY=http://myuser:mypwd@proxy.mycompany.com: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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci l'aggiornamento dalla versione 1.19.8 alla 1.20.x nell'ambiente Jenkins descritto, utilizzando il container Oracle e il proxy configurato. Confronta il comportamento delle dipendenze tra le versioni e conferma la correzione avviando correttamente il container dietro il proxy.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, java
- Ambito
- devops, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100