From d0b95c063bde514d46aa0e96f50335aa89a0c4bd Mon Sep 17 00:00:00 2001 From: Sunidhi-Gaonkar1 Date: Thu, 25 Aug 2022 12:47:14 +0530 Subject: [PATCH] Adding ppc64le support parameters --- tools/ansible/roles/dockerfile/defaults/main.yml | 3 +-- tools/ansible/roles/dockerfile/templates/Dockerfile.j2 | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/ansible/roles/dockerfile/defaults/main.yml b/tools/ansible/roles/dockerfile/defaults/main.yml index 71f56dace134..ec731bd216ad 100644 --- a/tools/ansible/roles/dockerfile/defaults/main.yml +++ b/tools/ansible/roles/dockerfile/defaults/main.yml @@ -9,5 +9,4 @@ template_dest: '_build' receptor_image: quay.io/ansible/receptor:devel # Helper vars to construct the proper download URL for the current architecture -tini_architecture: '{{ { "x86_64": "amd64", "aarch64": "arm64", "armv7": "arm" }[ansible_facts.architecture] }}' -kubectl_architecture: '{{ { "x86_64": "amd64", "aarch64": "arm64", "armv7": "arm" }[ansible_facts.architecture] }}' +image_architecture: '{{ { "x86_64": "amd64", "aarch64": "arm64", "armv7": "arm", "ppc64le": "ppc64le" }[ansible_facts.architecture] }}' diff --git a/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 b/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 index 81dfaff87bd1..695a24b17c01 100644 --- a/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 +++ b/tools/ansible/roles/dockerfile/templates/Dockerfile.j2 @@ -46,6 +46,13 @@ RUN dnf -y update && dnf install -y 'dnf-command(config-manager)' && \ RUN pip3 install virtualenv build +{% if image_architecture == 'ppc64le' %} + RUN dnf -y update && dnf install -y wget && \ + wget https://static.rust-lang.org/dist/rust-1.41.0-powerpc64le-unknown-linux-gnu.tar.gz && \ + tar -zxvf rust-1.41.0-powerpc64le-unknown-linux-gnu.tar.gz && \ + cd rust-1.41.0-powerpc64le-unknown-linux-gnu && \ + sh install.sh ; +{% endif %} # Install & build requirements ADD Makefile /tmp/Makefile