Skip to content

Commit

Permalink
[v0.17.x] ansible: use correct download URL for tini on aarch64 (#3291)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Gaffney <[email protected]>
  • Loading branch information
openshift-cherrypick-robot and agaffney authored Jun 25, 2020
1 parent 991d417 commit 0aa5e6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/fragments/3234-arm64-tini-url.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
entries:
- description: >
Fix the download URL for the `tini` binary on ARM64 for the ansible
operator base image
kind: "bugfix"
breaking: false
2 changes: 1 addition & 1 deletion internal/scaffold/ansible/dockerfilehybrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ RUN mkdir -p ${HOME}/.ansible/tmp \
&& chown -R ${USER_UID}:0 ${HOME} \
&& chmod -R ug+rwx ${HOME}
RUN TINIARCH=$(case $(arch) in x86_64) echo -n amd64 ;; ppc64le) echo -n ppc64el ;; *) echo -n $(arch) ;; esac) \
RUN TINIARCH=$(case $(arch) in x86_64) echo -n amd64 ;; ppc64le) echo -n ppc64el ;; aarch64) echo -n arm64 ;; *) echo -n $(arch) ;; esac) \
&& curl -L -o /tini https://github.com/krallin/tini/releases/latest/download/tini-$TINIARCH \
&& chmod +x /tini
Expand Down

0 comments on commit 0aa5e6d

Please sign in to comment.