Skip to content

Commit

Permalink
Merge pull request #1637 from atlassian/dca-2398-improve-bzt-tooling-…
Browse files Browse the repository at this point in the history
…s3-logic

Improve bzr.tar.gz downloading logic for Docker dcapt
  • Loading branch information
SergeyMoroz0703 authored Dec 23, 2024
2 parents 3123629 + 1330a33 commit 7380db6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ FROM python:3.13-slim-bookworm
ENV APT_INSTALL="apt-get -y install --no-install-recommends"

ARG CHROME_VERSION="latest"
ARG INCLUDE_BZT_TOOLS="false"

ENV CHROME_LATEST_URL="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
ENV CHROME_VERSION_URL="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb"
Expand All @@ -29,9 +30,11 @@ RUN if [ "$CHROME_VERSION" = "latest" ]; then wget -O google-chrome.deb $CHROME_
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

RUN wget https://blazemeter-tools.s3.us-east-2.amazonaws.com/bzt.tar.gz -O /tmp/bzt.tar.gz && \
tar -xzf /tmp/bzt.tar.gz -C /root && \
rm /tmp/bzt.tar.gz
RUN if [ "$INCLUDE_BZT" = "true" ]; then \
wget https://blazemeter-tools.s3.us-east-2.amazonaws.com/bzt.tar.gz -O /tmp/bzt.tar.gz && \
tar -xzf /tmp/bzt.tar.gz -C /root && \
rm /tmp/bzt.tar.gz; \
fi

WORKDIR /dc-app-performance-toolkit/app

Expand Down

0 comments on commit 7380db6

Please sign in to comment.