Skip to content

Commit

Permalink
Move k6 RPM inside the if block
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Dec 7, 2024
1 parent 71f03f3 commit 9e26844
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/dev_env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ RUN mkdir -p $HOME/.local/bin \
&& mkdir /pipx \
&& dnf5 -y install dnf-plugins-core \
&& dnf5 -y config-manager addrepo --from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo \
&& dnf5 -y install https://dl.k6.io/rpm/repo.rpm \
&& dnf5 -y install \
git \
g++ \
Expand All @@ -74,7 +73,10 @@ RUN mkdir -p $HOME/.local/bin \
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin \
unzip \
postgresql postgresql-devel \
&& if [ "$(uname -m)" = "x86_64" ]; then dnf5 -y install k6; fi \
&& if [ "$(uname -m)" = "x86_64" ]; then \
dnf5 -y install https://dl.k6.io/rpm/repo.rpm \
&& dnf5 -y install k6; \
fi \
&& dnf5 clean all \
&& pipx install --global \
httpie \
Expand Down

0 comments on commit 9e26844

Please sign in to comment.