Skip to content

Commit a00b313

Browse files
committed
Support Apple silicon on MacBook
1 parent 114f273 commit a00b313

5 files changed

Lines changed: 22 additions & 12 deletions

File tree

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ -f ${HOME}/.aws/credentials ]; then
2424
fi
2525
## If no AWS CLI credentials are configured, then the instance profile is in effect
2626
## AWS_REGION - will be set to AWS_DEFAULT_REGION if not set externally.
27-
export AWS_DEFAULT_REGION=us-east-2
27+
export AWS_DEFAULT_REGION=us-west-2
2828
if [ "${AWS_REGION}" == "" ]; then
2929
export AWS_REGION=$AWS_DEFAULT_REGION
3030
fi
@@ -53,7 +53,7 @@ fi
5353
export IMAGE=aws-do-eks
5454
## VERSION: [optional] - Version tag for this Docker image. Example: v20180302
5555
#export VERSION=v$(date +%Y%m%d)
56-
export VERSION=v20260606
56+
export VERSION=v20260611
5757
export TAG=$(if [ -z "${VERSION}" ]; then echo ""; else echo ":${VERSION}"; fi)
5858
## BUILD_OPTS: [optional] - arguments for the docker image build command
5959
export BUILD_OPTS="--progress plain --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} --build-arg no_proxy=${no_proxy}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ Container-Root/SBOM.txt
2424
Container-Root/version.txt
2525
Container-Root/eks/deployment/topology/topograph/topograph/
2626
Container-Root/eks/deployment/nvidia-dynamo/dynamo-platform-*.tgz
27+
*.pkg
-37.9 MB
Binary file not shown.

Container-Root/eks/ops/setup/install-aws-cli.sh

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,23 @@ ARCH=$(uname -m)
77
OS=$(uname -s)
88
OS_LOWER=$(echo $OS | tr '[:upper:]' '[:lower:]')
99
PLATFORM=${OS_LOWER}-${ARCH}
10-
URL=https://awscli.amazonaws.com/awscli-exe-${PLATFORM}.zip
11-
echo "$URL"
12-
1310
# Install aws cli
14-
curl "$URL" -o "awscliv2.zip"
15-
unzip awscliv2.zip
16-
./aws/install
17-
sudo cp -f /usr/local/bin/aws /bin/aws
11+
if [ "$OS" == "Darwin" ]; then
12+
echo "Installing AWS CLI on Mac ..."
13+
URL="https://awscli.amazonaws.com/AWSCLIV2.pkg"
14+
echo "${URL}"
15+
curl "${URL}" -o "AWSCLIV2.pkg"
16+
sudo installer -pkg AWSCLIV2.pkg -target /
17+
else
18+
echo "Installing AWS CLI on Linux ..."
19+
URL=https://awscli.amazonaws.com/awscli-exe-${PLATFORM}.zip
20+
echo "$URL"
21+
curl "$URL" -o "awscliv2.zip"
22+
unzip awscliv2.zip
23+
./aws/install
24+
sudo cp -f /usr/local/bin/aws /bin/aws
25+
rm -rf ./aws
26+
rm -f awscliv2.zip
27+
fi
1828
aws --version
19-
rm -rf ./aws
20-
rm -f awscliv2.zip
29+

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ RUN export http_proxy=$http_proxy; export https_proxy=$https_proxy; export no_pr
1616

1717
WORKDIR /eks
1818

19-
CMD /startup.sh
19+
CMD ["/startup.sh"]
2020

0 commit comments

Comments
 (0)