Skip to content

Commit 92c4299

Browse files
committed
Add AWS CLI
1 parent ec2d7a6 commit 92c4299

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

docker/debian/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ pkgs+=(net-tools) # Dependency for debugging network issues.
5555
pkgs+=(ninja-build) # Required build tool.
5656
pkgs+=(python3-venv) # Python environment management tool.
5757
pkgs+=(python3-pip) # Package manager for Python applications.
58+
pkgs+=(unzip) # Dependency for tools requiring unzipping files.
5859
pkgs+=(vim) # Text editor.
5960
pkgs+=(wget) # Required build tool.
6061
apt-get update
@@ -86,8 +87,18 @@ tar -xzf mold.tar.gz --strip-components=1 -C /usr/local
8687
rm mold.tar.gz
8788
EOF
8889

90+
# Install AWS CLI for uploading build artifacts to S3.
91+
RUN <<EOF
92+
ARCH=$(uname -m)
93+
wget -O awscli.zip https://awscli.amazonaws.com/awscli-exe-linux-${ARCH}.zip
94+
unzip awscli.zip
95+
./aws/install
96+
rm -rf awscli.zip aws
97+
EOF
98+
8999
# Print versions.
90100
RUN <<EOF
101+
aws --version
91102
ccache --version
92103
cmake --version
93104
conan --version

docker/rhel/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ fi
5454
pkgs+=(python3.12) # Required build tool.
5555
pkgs+=(python3.12-pip) # Package manager for Python applications.
5656
pkgs+=(rpm-build) # Required packaging tool.
57+
pkgs+=(unzip) # Dependency for tools requiring unzipping files.
5758
pkgs+=(vim) # Text editor.
5859
pkgs+=(wget) # Required build tool.
5960
dnf update -y
@@ -100,8 +101,18 @@ tar -xzf mold.tar.gz --strip-components=1 -C /usr/local
100101
rm mold.tar.gz
101102
EOF
102103

104+
# Install AWS CLI for uploading build artifacts to S3.
105+
RUN <<EOF
106+
ARCH=$(uname -m)
107+
wget -O awscli.zip https://awscli.amazonaws.com/awscli-exe-linux-${ARCH}.zip
108+
unzip awscli.zip
109+
./aws/install
110+
rm -rf awscli.zip aws
111+
EOF
112+
103113
# Print versions.
104114
RUN <<EOF
115+
aws --version
105116
ccache --version
106117
cmake --version
107118
conan --version

docker/ubuntu/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pkgs+=(net-tools) # Dependency for debugging network issues.
4141
pkgs+=(ninja-build) # Required build tool.
4242
pkgs+=(python3-venv) # Python environment management tool.
4343
pkgs+=(python3-pip) # Package manager for Python applications.
44+
pkgs+=(unzip) # Dependency for tools requiring unzipping files.
4445
pkgs+=(vim) # Text editor.
4546
pkgs+=(wget) # Required build tool.
4647
apt-get update
@@ -72,8 +73,18 @@ tar -xzf mold.tar.gz --strip-components=1 -C /usr/local
7273
rm mold.tar.gz
7374
EOF
7475

76+
# Install AWS CLI for uploading build artifacts to S3.
77+
RUN <<EOF
78+
ARCH=$(uname -m)
79+
wget -O awscli.zip https://awscli.amazonaws.com/awscli-exe-linux-${ARCH}.zip
80+
unzip awscli.zip
81+
./aws/install
82+
rm -rf awscli.zip aws
83+
EOF
84+
7585
# Print versions.
7686
RUN <<EOF
87+
aws --version
7788
ccache --version
7889
cmake --version
7990
conan --version

0 commit comments

Comments
 (0)