Skip to content

Commit

Permalink
Move config to json file and refactor scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wkoot committed Feb 27, 2024
1 parent 000e81d commit 2150ea6
Show file tree
Hide file tree
Showing 16 changed files with 241 additions and 194 deletions.
20 changes: 7 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,15 @@ RUN apt-get update \
&& apt-get install -y wget curl ca-certificates-java jq postgresql-client \
&& rm -rf /var/lib/apt/lists/*

COPY ./plugins /tmp/plugins
RUN rm -rf ./extensions/plugins/* && \
cat /tmp/plugins/plugin-list && \
chmod +x /tmp/plugins/install-plugins.sh && \
/tmp/plugins/install-plugins.sh

WORKDIR /opt/sonarqube

COPY ./start-with-profile.sh .
COPY ./rules /tmp/rules
COPY sonar.properties /opt/sonarqube/conf/sonar.properties
COPY ./src /src
RUN chmod +x /src/ /src/*.sh && \
rm -rf ./extensions/plugins/* && \
/src/install-plugins.sh

RUN chown -R sonarqube:sonarqube . \
&& chmod +x start-with-profile.sh
WORKDIR /opt/sonarqube
RUN chown -R sonarqube:sonarqube .

USER sonarqube

CMD ["./start-with-profile.sh"]
CMD ["/src/start-with-profile.sh"]
6 changes: 0 additions & 6 deletions plugins/plugin-list

This file was deleted.

1 change: 0 additions & 1 deletion rules/.gitattributes

This file was deleted.

12 changes: 0 additions & 12 deletions rules/cs.txt

This file was deleted.

17 changes: 0 additions & 17 deletions rules/java.txt

This file was deleted.

12 changes: 0 additions & 12 deletions rules/js.txt

This file was deleted.

7 changes: 0 additions & 7 deletions rules/kotlin.txt

This file was deleted.

9 changes: 0 additions & 9 deletions rules/py.txt

This file was deleted.

11 changes: 0 additions & 11 deletions rules/swift.txt

This file was deleted.

11 changes: 0 additions & 11 deletions rules/ts.txt

This file was deleted.

9 changes: 0 additions & 9 deletions rules/vbnet.txt

This file was deleted.

6 changes: 0 additions & 6 deletions rules/web.txt

This file was deleted.

50 changes: 0 additions & 50 deletions rules/yaml.txt

This file was deleted.

Loading

0 comments on commit 2150ea6

Please sign in to comment.