問題タブ [testcontainers-junit5]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
spring-boot - Jenkins CI/CD パイプラインでテストコンテナを使用して Springboot が postgresql に接続できない
内部で使用する光接続プールであるspringbootを使用しています。
testcontainers を使用してデータベース統合テストを実行していますが、これはローカル マシンで完全に正常に動作しています。
しかし、Jenkins CI/CD パイプラインで同じテストを実行すると、エラーで失敗します。
以下、詳細です。
pom.xml
コンテナーの初期化をテストする
データベースの移行に flyway を使用しています。
このコードは、ローカル ビルドで正常に動作します。しかし、Jenkinsで同じように実行すると、エラーが発生します。
Kubernetesバージョン v1.21.9 でジェンキンを実行しています。containerIdはcontainerd://1.4.12 です。
ここにスタックトレースがあります。