Skip to content

Commit 6b7b16c

Browse files
authored
Merge pull request #303 from alwynpan/feature/remove-deprecation-warning
#298 Use pip to install awscli to remove the deprecation warning
2 parents 35c806c + b64bd31 commit 6b7b16c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV INFLUX_VERSION=1.8.0 \
99
INFLUX2_VERSION=2.4.0 \
1010
MSODBC_VERSION=18.3.2.1-1 \
1111
MSSQL_VERSION=18.3.1.1-1 \
12-
AWS_CLI_VERSION=1.31.4 \
12+
AWS_CLI_VERSION=1.31.5 \
1313
CONTAINER_ENABLE_MESSAGING=FALSE \
1414
CONTAINER_ENABLE_MONITORING=TRUE \
1515
CONTAINER_PROCESS_RUNAWAY_PROTECTOR=FALSE \
@@ -73,8 +73,7 @@ RUN source /assets/functions/00-container && \
7373
\
7474
if [ $mssql = "true" ] ; then curl -O https://download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/msodbcsql18_${MSODBC_VERSION}_${mssql_arch}.apk ; curl -O https://download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/mssql-tools18_${MSSQL_VERSION}_${mssql_arch}.apk ; ls -l ; echo y | apk add --allow-untrusted msodbcsql18_${MSODBC_VERSION}_${mssql_arch}.apk mssql-tools18_${MSSQL_VERSION}_${mssql_arch}.apk ; else echo >&2 "Detected non x86_64 or ARM64 build variant, skipping MSSQL installation" ; fi; \
7575
if [ $influx2 = "true" ] ; then curl -sSL https://dl.influxdata.com/influxdb/releases/influxdb2-client-${INFLUX2_VERSION}-linux-${influx_arch}.tar.gz | tar xvfz - --strip=1 -C /usr/src/ ; chmod +x /usr/src/influx ; mv /usr/src/influx /usr/sbin/ ; else echo >&2 "Unable to build Influx 2 on this system" ; fi ; \
76-
clone_git_repo https://github.com/aws/aws-cli "${AWS_CLI_VERSION}" && \
77-
python3 setup.py install --prefix=/usr && \
76+
pip3 install --break-system-packages awscli==${AWS_CLI_VERSION} && \
7877
clone_git_repo https://github.com/influxdata/influxdb "${INFLUX_VERSION}" && \
7978
go build -o /usr/sbin/influxd ./cmd/influxd && \
8079
strip /usr/sbin/influxd && \

0 commit comments

Comments
 (0)