Description of problem:
There are no published arm images of mta-cli and so the CLI errors out when running on arm-based machines.
(base) ➜ Downloads ./mta-cli analyze --input ~/ws/coolstore-jakartaee --source eap:6 --target eap:8 --output /tmp/foo
INFO[0000] running source code analysis args="--provider-settings=/opt/input/config/settings.json --rules=/opt/rulesets/ --output-file=/opt/output/output.yaml --context-lines=100 --dep-label-selector=(!konveyor.io/dep-source=open-source) --verbose=4 --label-selector=((konveyor.io/target=eap:8) && (konveyor.io/source=eap:6)) || (discovery)" input=/Users/jhf/ws/coolstore-jakartaee log=/tmp/foo/analysis.log output=/tmp/foo volumes="{\"/Users/jhf/ws/coolstore-jakartaee\":\"/opt/input/source\",\"/tmp/foo\":\"/opt/output\",\"/var/folders/v2/rp2td0ks0w1_j87_r8wdkvsr0000gn/T/analyze-config-1256746607\":\"/opt/input/config\"}"
INFO[0000] generating analysis log in file file=/tmp/foo/analysis.log
ERRO[0000] container run error error="exit status 125"
ERRO[0000] failed to run analysis error="Trying to pull registry.redhat.io/mta/mta-cli-rhel9:7.0.0...\nError: choosing an image from manifest list
[docker://registry.redhat.io/mta/mta-cli-rhel9:7.0.0]
: no image found in manifest list for architecture arm64, variant \"v8\", OS linux\n"
Error: Trying to pull registry.redhat.io/mta/mta-cli-rhel9:7.0.0...
Error: choosing an image from manifest list
[docker://registry.redhat.io/mta/mta-cli-rhel9:7.0.0]
: no image found in manifest list for architecture arm64, variant "v8", OS linux
Version-Release number of selected component (if applicable):
7.0.0
How reproducible:
100%
Steps to Reproduce:
1. Own an M1 Mac or newer
2. Download Mac MTA CLI tool
3. Run analysis on source code
Actual results:
See description
Expected results:
Analysis succeeds
Additional info:
There is a workaround to simply use our published upstream images since they are built using multi-arch. To do this:
RUNNER_IMG=quay.io/konveyor/kantra:latest CMD_NAME=kantra ./mta-cli analyze ...
- links to
-
RHSA-2024:127515 Migration Toolkit for Applications security and bug fix update