Skip to content

Commit

Permalink
Adding ppc64le support parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunidhi-Gaonkar1 committed Sep 22, 2022
1 parent 4fbf5e9 commit d0b95c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions tools/ansible/roles/dockerfile/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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] }}'
7 changes: 7 additions & 0 deletions tools/ansible/roles/dockerfile/templates/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0b95c0

Please sign in to comment.