Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from OctopusDeployLabs/add-aws-cli
Browse files Browse the repository at this point in the history
Adding AWS CLI to flyway container to support IAM role authentication.
  • Loading branch information
BobJWalker authored Jan 3, 2024
2 parents 3b1cee7 + fb4a2dc commit 907b5d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ubuntu-2004/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ RUN apt-get update && apt-get install -y openjdk-17-jre-headless
# Get SQL Fluff for Flyway Check Command
RUN pip3 install sqlfluff==1.2.1

# Install AWS CLI to support IAM role authentication
RUN apt-get update && apt-get install unzip \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& rm awscliv2.zip \
&& ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update

# Change the workdir to flyway to install flyway binaries
WORKDIR /flyway

Expand Down
8 changes: 8 additions & 0 deletions ubuntu-2204/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ RUN apt-get update && apt-get install -y openjdk-17-jre-headless
# Get SQL Fluff for Flyway Check Command
RUN pip3 install sqlfluff==1.2.1

# Install AWS CLI to support IAM role authentication
RUN apt-get update && apt-get install unzip \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& rm awscliv2.zip \
&& ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update


# Change the workdir to flyway to install flyway binaries
WORKDIR /flyway

Expand Down

0 comments on commit 907b5d9

Please sign in to comment.