[Bug]: Doesn't work behind proxy since 1.20.0 (1.20.1 too)

Aperta
#9,141 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
docker, java
Ambito
devops, testing-qa

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.

Descrizione

type/bug
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

Lingua principale
Java
Stelle
8.8k
Fork
2k
Merge medio
5g 21h
PR unite (30g)
15

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di testcontainers/testcontainers-java

Tutte le issue di testcontainers/testcontainers-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.