Skip to content

Commit

Permalink
💻 awscli
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Nov 6, 2024
1 parent bc59868 commit b61780d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RUN ${DOTFILES_DIR}/bootstrap/pyenv/bin/pyenv global system
RUN ${DOTFILES_DIR}/bootstrap/pyenv/bin/pyenv rehash
RUN make -C ${HOME}/.dotfiles uv-install
RUN make -C ${HOME}/.dotfiles nvim-build
RUN ${DOTFILES_DIR}/bin/install-awscli

RUN pipx install "browsr[all]"

Expand Down
17 changes: 4 additions & 13 deletions bin/install-awscli
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,10 @@ fi

if [[ ${OSTYPE} == "linux"* ]]; then
echo "Linux environment detected ⚙️"
if [[ $(uname -m) == "aarch64" ]]; then
echo "ARM architecture detected, installing AWS CLI for ARM 🦾"
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install || ./aws/install ${UPDATE}
rm -rf awscliv2.zip aws
else
echo "x86 architecture detected, installing AWS CLI for x86 🦾"
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install || ./aws/install ${UPDATE}
rm -rf awscliv2.zip aws
fi
curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install || ./aws/install ${UPDATE}
rm -rf awscliv2.zip aws
elif [[ ${OSTYPE} == "darwin"* ]]; then
echo "Mac environment detected ⚙️"
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
Expand Down

0 comments on commit b61780d

Please sign in to comment.