Skip to content

Commit

Permalink
Install aws-cli
Browse files Browse the repository at this point in the history
We have to get it from Amazon directly and run an install script as
aws-cli v2 (which is what we use on Windows) is only shipped as a snap,
and snaps don't work on Docker, which the GitLab runners use.

This is a combination of 4 commits.
This is the 1st commit message:

Install aws-cli

Get it from snap because apt only has 1.x versions.
Pass --classic so it can actually see files.

This is the commit message #2:

But snapd isn't installed by default even though it's Ubuntu's recommended way to install everything

This is the commit message #3:

Mysterious snap-fixing incantation

I guess the service isn't running my default until the next reboot?

This is the commit message #4:

Snap doesn't work in Docker, apt doesn't have awscli v2+, let's just install random binaries wherever they want to put themselves

    pick 5f0dfbf768 Install aws-cli
    squash 1ed2a711fc But snapd isn't installed by default even though it's Ubuntu's recommended way to install everything
    squash 230c917993 Mysterious snap-fixing incantation
    squash 75142ff3c2 Snap doesn't work in Docker, apt doesn't have awscli v2+, let's just install random binaries wherever they want to put themselves
  • Loading branch information
AnyOldName3 committed Sep 9, 2024
1 parent 0172fe7 commit 3c065ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,13 @@ macOS14_Xcode15_arm64:
GIT_STRATEGY: none
script:
- apt-get update
- apt-get install -y gcab unzip
- apt-get install -y curl gcab unzip
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscli-exe-linux-x86_64.zip
- unzip -d awscli-exe-linux-x86_64 awscli-exe-linux-x86_64.zip
- pushd awscli-exe-linux-x86_64
- ./aws/install
- popd
- aws --version
- unzip -d sym_store *sym_store.zip
- shopt -s globstar
- |
Expand Down

0 comments on commit 3c065ec

Please sign in to comment.