Skip to content

Commit 4da0555

Browse files
authored
Enhance Dockerfile with GitHub and AWS CLI installations
Added installation of GitHub CLI and AWS CLI v2 to the Dockerfile.
1 parent 2c5e617 commit 4da0555

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,18 @@ RUN apt-get update -y && apt-get upgrade -y && useradd -m docker
1010
# install python and the packages the your code depends on along with jq so we can parse JSON
1111
# add additional packages as necessary
1212
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
13-
curl jq build-essential libssl-dev libffi-dev python3 python3-venv python3-dev python3-pip unzip git libicu-dev yq rsync
13+
curl jq build-essential libssl-dev libffi-dev python3 python3-venv python3-dev python3-pip unzip git libicu-dev yq rsync \
14+
openssh-client nodejs npm
15+
16+
# Install GitHub CLI
17+
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
18+
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
19+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
20+
&& apt-get update && apt-get install -y gh
21+
22+
# Install AWS CLI v2
23+
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
24+
&& unzip awscliv2.zip && ./aws/install && rm -rf awscliv2.zip aws
1425

1526
# cd into the user directory, download and unzip the github actions runner
1627
RUN cd /home/docker && mkdir actions-runner && cd actions-runner \

0 commit comments

Comments
 (0)