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

Đang mở
#9,141 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
docker, java
Lĩnh vực
devops, testing-qa

Hướng nghiên cứu

Tái hiện quá trình nâng cấp từ 1.19.8 lên 1.20.x trong môi trường Jenkins được mô tả, sử dụng container Oracle và proxy đã cấu hình. So sánh hành vi của các dependency giữa các phiên bản và xác nhận bản sửa lỗi bằng cách khởi động container thành công phía sau proxy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Java
Star
8.8k
Fork
2k
Merge trung bình
5 ngày 21 giờ
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của testcontainers/testcontainers-java

Tất cả issue của testcontainers/testcontainers-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.