Skip to content

Commit

Permalink
Merge pull request #44 from stakater/AsfaMumtaz-patch-1
Browse files Browse the repository at this point in the history
Update sonar scanner cli version
  • Loading branch information
rasheedamir authored Jun 5, 2024
2 parents 61968aa + 72ce36e commit 3d9f659
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ ENV GLIBC_VERSION=2.30-r0 \
KUBECONFORM=v0.4.14 \
ROX_VERSION=3.70.2 \
ANSIBLE_VERSION=2.12.1 \
SONAR_CLI_VERSION=6.0.0.4432-linux \
HOME="/opt/root"\
JAVA_TOOL_OPTIONS="-Djava.net.preferIPv4Stack=true"


# Create Home directory which has permissions for all users. issue https://github.com/tektoncd/pipeline/issues/2013
RUN mkdir $HOME
Expand Down Expand Up @@ -95,10 +97,9 @@ RUN for f in "/etc/passwd" "/projects"; do \
done

# install sonarqube scanner
RUN wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.2.0.1873-linux.zip && \
unzip sonar-scanner-cli-4.2.0.1873-linux.zip && \
mv sonar-scanner-4.2.0.1873-linux /var/opt
ENV PATH="/var/opt/sonar-scanner-4.2.0.1873-linux/bin:${PATH}"
RUN wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_CLI_VERSION}.zip && \
unzip sonar-scanner-cli-${SONAR_CLI_VERSION}.zip && mv sonar-scanner-${SONAR_CLI_VERSION} /var/opt
ENV PATH="/var/opt/sonar-scanner-${SONAR_CLI_VERSION}/bin:${PATH}"
RUN echo "sonarqube-scanner installed"

# install unzip & buildah
Expand Down Expand Up @@ -139,10 +140,6 @@ RUN curl -sL -o /usr/local/bin/roxctl https://mirror.openshift.com/pub/rhacs/ass
# install yarn
RUN npm install -g yarn

# install chrome
COPY repos/*.repo /etc/yum.repos.d/
RUN dnf -y install xdg-utils liberation-fonts google-chrome

RUN mkdir /scripts
COPY scripts /scripts/

Expand Down

0 comments on commit 3d9f659

Please sign in to comment.