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

Add Try::Tiny in zonemaster-cli runtime Docker container #1399

Conversation

marc-vanderwal
Copy link
Contributor

Purpose

This PR installs a missing runtime dependency in the Docker container for Zonemaster-CLI.

Context

Release testing for the upcoming 2024.2 release.

Changes

  • Install Try::Tiny in the second (runtime) stage Docker container.
  • As a drive-by change: address a warning emitted by docker build due to the capitalization of the as keyword on the first line of the Dockerfile.

How to test this PR

Build the Docker container, then perform the “smoke test” for Zonemaster::Engine:

docker run --rm zonemaster/engine:local perl -MZonemaster::Engine -E 'say join "\n", Zonemaster::Engine->test_module("BASIC", "zonemaster.net")'

The program should complete, and should not error out because of a missing package.

Running “docker build” on Zonemaster-Engine caused a warning to appear
on my test system:

 1 warning found (use docker --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
Try::Tiny was missing from the run-time container.
@marc-vanderwal marc-vanderwal added T-Bug Type: Bug in software or error in test case description P-High Priority: Issue to be solved before other labels Nov 28, 2024
@marc-vanderwal marc-vanderwal added this to the v2024.2 milestone Nov 28, 2024
@tgreenx tgreenx added the V-Patch Versioning: The change gives an update of patch in version. label Dec 2, 2024
@marc-vanderwal marc-vanderwal merged commit 0d3f6cf into zonemaster:develop Dec 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-High Priority: Issue to be solved before other T-Bug Type: Bug in software or error in test case description V-Patch Versioning: The change gives an update of patch in version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants