Skip to content

Commit

Permalink
Add tideways cli (always)
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-obuchowicz committed Oct 22, 2024
1 parent f0bb87a commit ceb616f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions images/common/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ RUN bash -c 'if [ ${BLACKFIRE_EXTENSION_ENABLED} = 1 ]; then \
&& rm -Rf /tmp/blackfire; fi'

# Tideways CLI
RUN bash -c 'if [ ${TIDEWAYS_EXTENSION_ENABLED} = 1 ]; then \
mkdir -p /tmp/tideways-cli \
RUN bash -c 'mkdir -p /tmp/tideways-cli \
&& architecture=$(case $(uname -m) in i386 | i686 | x86) echo "i386" ;; x86_64 | amd64) echo "amd64" ;; aarch64 | arm64 | armv8) echo "arm64" ;; *) echo "amd64" ;; esac) \
&& wget -qO- -U "Docker" https://tideways.s3.amazonaws.com/cli/1.2.2/tideways-cli_linux_${architecture}-1.2.2.tar.gz | tar zxp -C /tmp/tideways-cli \
&& mv /tmp/tideways-cli/tideways-cli_1.2.2/tideways /usr/bin/tideways \
&& chmod 755 /usr/bin/tideways \
&& rm -Rf /tmp/tideways-cli; fi'
&& rm -Rf /tmp/tideways-cli'

ENV PATH=/data/vendor/bin:$PATH

Expand Down

0 comments on commit ceb616f

Please sign in to comment.