Skip to content

Commit baf1ce7

Browse files
authored
Merge branch 'testcontainers:main' into add_timeplus_container
2 parents f50b0bb + 01469c3 commit baf1ce7

File tree

54 files changed

+883
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+883
-129
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ body:
2727
- Dynalite
2828
- Elasticsearch
2929
- GCloud
30+
- Grafana
3031
- HiveMQ
3132
- InfluxDB
3233
- K3S

.github/ISSUE_TEMPLATE/enhancement.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ body:
2727
- Dynalite
2828
- Elasticsearch
2929
- GCloud
30+
- Grafana
3031
- HiveMQ
3132
- InfluxDB
3233
- K3S

.github/ISSUE_TEMPLATE/feature.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ body:
2727
- Dynalite
2828
- Elasticsearch
2929
- GCloud
30+
- Grafana
3031
- HiveMQ
3132
- InfluxDB
3233
- K3S

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ updates:
106106
schedule:
107107
interval: "weekly"
108108
open-pull-requests-limit: 10
109+
- package-ecosystem: "gradle"
110+
directory: "/modules/grafana"
111+
schedule:
112+
interval: "weekly"
113+
open-pull-requests-limit: 10
109114
- package-ecosystem: "gradle"
110115
directory: "/modules/hivemq"
111116
schedule:
@@ -371,6 +376,13 @@ updates:
371376
update-types: [ "version-update:semver-major" ]
372377
- dependency-name: "com.diffplug.spotless"
373378
update-types: [ "version-update:semver-minor" ]
379+
380+
# Smoke test
381+
- package-ecosystem: "gradle"
382+
directory: "/smoke-test"
383+
schedule:
384+
interval: "weekly"
385+
open-pull-requests-limit: 10
374386

375387
# GitHub Actions
376388
- package-ecosystem: "github-actions"

.github/labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
- changed-files:
6868
- any-glob-to-any-file:
6969
- modules/gcloud/**/*
70+
"modules/grafana":
71+
- changed-files:
72+
- any-glob-to-any-file:
73+
- modules/grafana/**/*
7074
"modules/hivemq":
7175
- changed-files:
7276
- any-glob-to-any-file:

.github/settings.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ labels:
145145
- name: modules/gcloud
146146
color: '#006b75'
147147

148+
- name: modules/grafana
149+
color: '#006b75'
150+
148151
- name: modules/hivemq
149152
color: '#006b75'
150153

.github/workflows/moby-latest.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Tests against recent Docker engine releases
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# nightly build, at 23:59 CEST
7+
- cron: '59 23 * * *'
8+
9+
jobs:
10+
test_docker:
11+
strategy:
12+
matrix:
13+
install-docker-type: ["STABLE", "ROOTLESS", "ROOTFUL"]
14+
name: "Core tests using Docker ${{ matrix.install-docker-type }}"
15+
runs-on: ubuntu-22.04
16+
continue-on-error: true
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: ./.github/actions/setup-build
20+
21+
- name: Install Stable Docker
22+
if: ${{ matrix.install-docker-type == 'STABLE' }}
23+
run: curl https://get.docker.com
24+
25+
- name: Install Docker from the TEST channel
26+
if: ${{ matrix.install-docker-type == 'ROOTFUL' }}
27+
run: curl https://get.docker.com | CHANNEL=test sh
28+
29+
- name: Setup rootless Docker
30+
if: ${{ matrix.install-docker-type == 'ROOTLESS' }}
31+
uses: ScribeMD/rootless-docker@6bd157a512c2fafa4e0243a8aa87d964eb890886 # v0.2.2
32+
33+
- name: Remove Docker root socket
34+
if: ${{ matrix.install-docker-type == 'ROOTLESS' }}
35+
run: sudo rm -rf /var/run/docker.sock
36+
37+
- name: Check Docker version
38+
run: docker version
39+
40+
- name: Build with Gradle
41+
run: ./gradlew cleanTest --no-daemon --continue --scan -Dscan.tag.DOCKER_${{ matrix.install-docker-type }} testcontainers:test -Dorg.gradle.caching=false
42+
- uses: ./.github/actions/setup-junit-report
43+
44+
- name: Notify to Slack on failures
45+
if: failure()
46+
id: slack
47+
uses: slackapi/[email protected]
48+
with:
49+
payload: |
50+
{
51+
"tc_project": "testcontainers-java",
52+
"tc_docker_install_type": "${{ matrix.install-docker-type }}",
53+
"tc_github_action_url": "https://github.com/testcontainers/testcontainers-java/actions/runs/${{ env.GITHUB_RUN_ID }}/job/${{ env.GITHUB_RUN_NUMBER }}",
54+
"tc_github_action_status": "FAILED",
55+
"tc_slack_channel_id": "${{ secrets.SLACK_DOCKER_LATEST_CHANNEL_ID }}"
56+
}
57+
env:
58+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DOCKER_LATEST_WEBHOOK }}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ subprojects {
8888
}
8989
ext.isCI = System.getenv("CI") != null
9090
if (isCI) {
91-
retry {
91+
develocity.testRetry {
9292
maxRetries = 2
9393
maxFailures = 5
9494
failOnPassedAfterRetry = false

core/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ dependencies {
8888

8989
shaded 'org.awaitility:awaitility:4.2.1'
9090

91-
api platform('com.github.docker-java:docker-java-bom:3.3.6')
92-
shaded platform('com.github.docker-java:docker-java-bom:3.3.6')
91+
api platform('com.github.docker-java:docker-java-bom:3.4.0')
92+
shaded platform('com.github.docker-java:docker-java-bom:3.4.0')
9393

9494
api "com.github.docker-java:docker-java-api"
9595

core/src/main/java/org/testcontainers/DockerClientFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private DockerClientProviderStrategy getOrInitializeStrategy() {
145145
if (strategy != null) {
146146
return strategy;
147147
}
148-
148+
log.info("Testcontainers version: {}", DEFAULT_LABELS.get(TESTCONTAINERS_VERSION_LABEL));
149149
List<DockerClientProviderStrategy> configurationStrategies = new ArrayList<>();
150150
ServiceLoader.load(DockerClientProviderStrategy.class).forEach(configurationStrategies::add);
151151

0 commit comments

Comments
 (0)