adoptium / infrastructure

This repo contains all information about machine maintenance.
Apache License 2.0
84 stars 100 forks source link

docker: Add --platform option to docker run command #3615

Closed Haroon-Khel closed 5 days ago

Haroon-Khel commented 1 week ago

The --platform option is required in the docker run command (along side its use in the docker build command) to prevent such warnings

WARNING: The requested image's platform (linux/s390x) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Fixes https://github.com/adoptium/infrastructure/issues/3633

Haroon-Khel commented 1 week ago
WARNING  Listing 2 violation(s) that are fatal
inline-env-var: Command module does not accept setting environment variables inline.
ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/yum/tasks/main.yml:70 Task/Handler: Unpack yum bundle

inline-env-var: Command module does not accept setting environment variables inline.
ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/ccache/tasks/main.yml:17 Task/Handler: Download ccache.tar.gz

Linter errors do not look related to the pr