Skip to content

Commit

Permalink
Merge pull request #117 from SumoSumir/master
Browse files Browse the repository at this point in the history
Support for Arm based Mac's - prevents hunger check (gotty) crash
  • Loading branch information
madhuakula authored May 2, 2023
2 parents 9c10f8a + 702de42 commit 5437f4f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions infrastructure/hunger-check/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ LABEL MAINTAINER="Madhu Akula" INFO="Kubernetes Goat"

RUN apt update && apt install stress-ng curl wget -y \
&& cd /tmp; \
if [ `uname -m` = "aarch64" ]; then \
GOTTY="gotty_linux_arm.tar.gz"; \
arch=`uname -m` && \
if [ $arch = "aarch64" ] || [ $arch = "arm64" ]; then \
GOTTY="gotty_2.0.0-alpha.3_linux_arm.tar.gz"; \
else \
GOTTY="gotty_linux_amd64.tar.gz"; \
GOTTY="gotty_2.0.0-alpha.3_linux_amd64.tar.gz"; \
fi; \
wget https:/yudai/gotty/releases/download/v1.0.1/${GOTTY} \
wget https:/yudai/gotty/releases/download/v2.0.0-alpha.3/${GOTTY} \
&& tar -xvzf ${GOTTY}; mv gotty /usr/local/bin/gotty

EXPOSE 8080
Expand Down

0 comments on commit 5437f4f

Please sign in to comment.