Skip to content

chore: build images with backoff retries#792

Merged
mdelapenya merged 1 commit intotestcontainers:mainfrom
mdelapenya:backoff-build-image
Jan 30, 2023
Merged

chore: build images with backoff retries#792
mdelapenya merged 1 commit intotestcontainers:mainfrom
mdelapenya:backoff-build-image

Conversation

@mdelapenya
Copy link
Copy Markdown
Member

@mdelapenya mdelapenya commented Jan 27, 2023

What does this PR do?

It wraps the Docker client call to ImageBuild into a backoff retry

Why is it important?

It could be the case the ImageBuild needs to pull images, and for some reason the network has a glitch. In those cases, we need to retry to avoid failures.

Related issues

Follow-ups

At some point we should make the backoff wait strategy configurable, e.g. using the .testcontainers.properties file or an env var.

It could be the case the ImageBuild needs to pull images, and for some
reason the network has a glitch. In those cases, we need to retry
@mdelapenya mdelapenya requested a review from a team as a code owner January 27, 2023 00:21
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Jan 27, 2023
@mdelapenya mdelapenya self-assigned this Jan 27, 2023
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 27, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit dcde7ea
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/63d31921ca7929000996d43c
😎 Deploy Preview https://deploy-preview-792--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@mdelapenya mdelapenya merged commit 0861877 into testcontainers:main Jan 30, 2023
@mdelapenya mdelapenya deleted the backoff-build-image branch January 30, 2023 12:35
mdonkers pushed a commit to mdonkers/testcontainers-go that referenced this pull request Jan 31, 2023
…n-failure-or-exit

* origin/main:
  docs: add intel as user (testcontainers#798)
  chore: bump containerd in examples (testcontainers#797)
  chore(deps): bump github.com/containerd/containerd from 1.6.15 to 1.6.16 (testcontainers#793)
  chore: extract docker host calculation to an internal package (testcontainers#796)
  chore: run "go mod tidy" automatically when creating examples (testcontainers#794)
  chore: build images with backoff retries (testcontainers#792)
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Feb 10, 2023
* main:
  chore: update Docker labels for containers (testcontainers#813)
  fix: nil pointer dereference in HealthStrategy (testcontainers#802)
  fix: Synchronise writes to containers map (testcontainers#812)
  chore(deps): bump google.golang.org/api from 0.108.0 to 0.109.0 in /examples (testcontainers#810)
  chore(deps): bump cloud.google.com/go/spanner in /examples/spanner (testcontainers#806)
  chore: restructure Docker helper methods (testcontainers#799)
  Verify Reaper state to create new or return existing instance (#782)
  docs: add intel as user (testcontainers#798)
  chore: bump containerd in examples (testcontainers#797)
  chore(deps): bump github.com/containerd/containerd from 1.6.15 to 1.6.16 (testcontainers#793)
  chore: extract docker host calculation to an internal package (testcontainers#796)
  chore: run "go mod tidy" automatically when creating examples (testcontainers#794)
  chore: build images with backoff retries (testcontainers#792)
  fix: use right import package for compose in docs (testcontainers#791)
  chore(deps): bump google.golang.org/grpc from 1.52.1 to 1.52.3 in /examples (testcontainers#790)
  Add devcontainer file (#765)
  chore: check dependabot dependencies weekly (testcontainers#789)
  chore(deps): bump google.golang.org/grpc from 1.52.0 to 1.52.1 in /examples (#783)
  chore: support for titles in examples (#775)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Changes that do not impact the existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant