Skip to content

Commit

Permalink
Merge branch 'feat/awscli' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed May 10, 2023
2 parents 8c98c53 + 74d8890 commit 81489ee
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ env:
AZURE_CLI_VERSION: 2.48.1
# https://github.com/stedolan/jq/releases
JQ_VERSION: 1.6
# https://github.com/aws/aws-cli/releases
AWS_CLI_VERSION: 2.11.18
# https://github.com/git-for-windows/git/releases
GIT_VERSION_WIN: 2.40.1
# https://github.com/facebook/zstd/releases
Expand Down Expand Up @@ -259,6 +261,7 @@ jobs:
uses: docker/build-push-action@v4.0.0
with:
build-args: |
"AWS_CLI_VERSION=${{ env.AWS_CLI_VERSION }}"
"AZP_AGENT_VERSION=${{ env.AZP_AGENT_VERSION }}"
"AZURE_CLI_VERSION=${{ env.AZURE_CLI_VERSION }}"
"BUILDKIT_VERSION=${{ env.BUILDKIT_VERSION }}"
Expand Down Expand Up @@ -372,6 +375,7 @@ jobs:
run: |
$params = @(
# Required build arguments
"--build-arg", "AWS_CLI_VERSION=${{ env.AWS_CLI_VERSION }}",
"--build-arg", "AZP_AGENT_VERSION=${{ env.AZP_AGENT_VERSION }}",
"--build-arg", "AZURE_CLI_VERSION=${{ env.AZURE_CLI_VERSION }}",
"--build-arg", "GIT_VERSION=${{ env.GIT_VERSION_WIN }}",
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ Same way, if you want to use multiple versions of the framework, re-execute the
- [Azure Pipelines agent](https://github.com/microsoft/azure-pipelines-agent) + [requirements](https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops#linux)
- [BuildKit](https://github.com/moby/buildkit) + requirements ([dbus-user-session](https://dbus.freedesktop.org), [fuse-overlayfs](https://github.com/containers/fuse-overlayfs), [iptables](https://www.netfilter.org/projects/iptables/index.html), [shadow-utils](https://github.com/shadow-maint/shadow), [uidmap](https://github.com/shadow-maint/shadow))
- Cloud providers CLIs
- [AWS CLI](https://github.com/aws/aws-cli)
- [Azure CLI](https://github.com/Azure/azure-cli)
- Shells
- [bash](https://www.gnu.org/software/bash)
Expand All @@ -295,6 +296,7 @@ Same way, if you want to use multiple versions of the framework, re-execute the
- [Azure Pipelines agent](https://github.com/microsoft/azure-pipelines-agent) + [requirements](https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops#linux)
- Cloud providers CLIs
- [Azure CLI](https://github.com/Azure/azure-cli)
- [AWS CLI](https://github.com/aws/aws-cli)
- Shells
- [PowerShell Core](https://github.com/PowerShell/PowerShell)
- Programming languages
Expand Down
9 changes: 9 additions & 0 deletions src/docker/Dockerfile-bullseye
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ RUN python3 -m pip \
&& az version \
&& az upgrade --yes

# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN curl -LsSf https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \
&& unzip awscli.zip \
&& ./aws/install \
&& rm -rf awscli.zip aws \
&& aws --version

# Install Powershell, then verify installation
ARG POWERSHELL_VERSION
ENV POWERSHELL_VERSION ${POWERSHELL_VERSION}
Expand Down
9 changes: 9 additions & 0 deletions src/docker/Dockerfile-focal
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ RUN python3 -m pip \
&& az version \
&& az upgrade --yes

# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN curl -LsSf https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \
&& unzip awscli.zip \
&& ./aws/install \
&& rm -rf awscli.zip aws \
&& aws --version

# Install Powershell, then verify installation
ARG POWERSHELL_VERSION
ENV POWERSHELL_VERSION ${POWERSHELL_VERSION}
Expand Down
9 changes: 9 additions & 0 deletions src/docker/Dockerfile-jammy
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ RUN python3 -m pip \
&& az version \
&& az upgrade --yes

# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN curl -LsSf https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \
&& unzip awscli.zip \
&& ./aws/install \
&& rm -rf awscli.zip aws \
&& aws --version

# Install Powershell, then verify installation
ARG POWERSHELL_VERSION
ENV POWERSHELL_VERSION ${POWERSHELL_VERSION}
Expand Down
9 changes: 9 additions & 0 deletions src/docker/Dockerfile-ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ RUN python3 -m pip \
&& az version \
&& az upgrade --yes

# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN curl -LsSf https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \
&& unzip awscli.zip \
&& ./aws/install \
&& rm -rf awscli.zip aws \
&& aws --version

# Install Powershell, then verify installation
ARG POWERSHELL_VERSION
ENV POWERSHELL_VERSION ${POWERSHELL_VERSION}
Expand Down
7 changes: 7 additions & 0 deletions src/docker/Dockerfile-win-ltsc2019
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ RUN python -m pip \
; az version \
; az upgrade --yes

# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN Invoke-WebRequest -Uri https://awscli.amazonaws.com/AWSCLIV2-$($Env:AWS_CLI_VERSION).msi -OutFile awscli.msi \
; Start-Process msiexec.exe -Wait -ArgumentList '/I awscli.msi /qn /norestart' \
; Remove-Item awscli.msi
RUN aws --version

# Install Powershell, then verify installation
ARG POWERSHELL_VERSION
Expand Down
7 changes: 7 additions & 0 deletions src/docker/Dockerfile-win-ltsc2022
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ RUN python -m pip \
; az version \
; az upgrade --yes

# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN Invoke-WebRequest -Uri https://awscli.amazonaws.com/AWSCLIV2-$($Env:AWS_CLI_VERSION).msi -OutFile awscli.msi \
; Start-Process msiexec.exe -Wait -ArgumentList '/I awscli.msi /qn /norestart' \
; Remove-Item awscli.msi
RUN aws --version

# Install Powershell, then verify installation
ARG POWERSHELL_VERSION
Expand Down

0 comments on commit 81489ee

Please sign in to comment.