Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: support for bumping ryuk in an automated manner #1195

Merged
merged 2 commits into from
May 19, 2023

Conversation

mdelapenya
Copy link
Collaborator

@mdelapenya mdelapenya commented May 19, 2023

  • chore: bump Ryuk to v0.5.1
  • chore: add a script to bump ryuk in an automated manner

What does this PR do?

This PRs bumps Ryuk to the latest version (v0.5.1), and adds a shell script to bump the Ryuk version in an automated manner. The script consumes just the first argument of a call, which should be the full qualified name of the Docker image representing Ryuk: e.g. "docker.io/testcontainers/ryuk:0.5.1"

This script is used to bump the version of Ryuk in Testcontainers for Go, modifying the "reaper.go" file. By default, it will be run in dry-run mode, which will print the commands that would be executed, without actually executing them.

Usage: ./scripts/bump-reaper.sh "docker.io/testcontainers/ryuk:1.2.3"

It's possible to run the script without dry-run mode actually executing the commands.

Usage: DRY_RUN="false" ./scripts/bump-reaper.sh "docker.io/testcontainers/ryuk:1.2.3"

The passed argument will replace the content of the ReaperDefaultImage variable in the reaper.go file.

Why is it important?

We would like to eventually bump the ryuk version in an automated manner, e.g. when ryuk is bumped in their repo, automatically clone all dependent repos (e.g. go, .net, node, java) and run the very same entrypoint in all of them, finally sending a PR. This shell script would represent the entrypoint for that, and should be eventually copied across the testcontainers projects, with the specific parsing code to extract the Ryuk version from them.

Follow-ups

We must include a way to pass the new features from Ryuk (verbose mode). I did not add them because it will cause conflicts with #1161, as it affects how the testcontainers config struct is populated

@mdelapenya mdelapenya requested a review from a team as a code owner May 19, 2023 08:54
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label May 19, 2023
@mdelapenya mdelapenya self-assigned this May 19, 2023
@mdelapenya mdelapenya requested a review from kiview May 19, 2023 08:54
@netlify
Copy link

netlify bot commented May 19, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 903b930
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/64673933aa8dd30008a7fca6
😎 Deploy Preview https://deploy-preview-1195--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.

@sonarcloud
Copy link

sonarcloud bot commented May 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mdelapenya mdelapenya merged commit 5d4d8fa into testcontainers:main May 19, 2023
56 checks passed
@mdelapenya mdelapenya deleted the bump-ryuk branch May 19, 2023 10:22
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request May 23, 2023
* main:
  chore: support for bumping ryuk in an automated manner (testcontainers#1195)
  chore(deps): bump pymdown-extensions from 9.0 to 10.0 (testcontainers#1193)
  fix: align header while log producers are reading (testcontainers#1085)
  fix: update link to modules docs (testcontainers#1192)
  chore(deps): bump github.com/docker/distribution from 2.8.1+incompatible to 2.8.2+incompatible (testcontainers#1189)
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.

None yet

1 participant