-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
898 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,36 @@ | ||
FROM registry.cloudogu.com/official/java:8u171-1 | ||
FROM registry.cloudogu.com/official/java:8u191-1 | ||
|
||
LABEL NAME="official/sonar" \ | ||
VERSION="5.6.7-2" \ | ||
maintainer="sebastian.sdorra@cloudogu.com" | ||
VERSION="6.7.6-1" \ | ||
maintainer="robert.auer@cloudogu.com" | ||
|
||
ENV SONAR_VERSION=5.6.7 \ | ||
ENV SONAR_VERSION=6.7.6 \ | ||
SONARQUBE_HOME=/opt/sonar \ | ||
# mark as webapp for nginx | ||
SERVICE_TAGS=webapp | ||
SERVICE_TAGS=webapp \ | ||
CAS_PLUGIN_VERSION=1.0.5 | ||
|
||
RUN set -x \ | ||
&& apk add --no-cache procps postgresql-client \ | ||
&& mkdir /opt \ | ||
&& cd /tmp \ | ||
&& curl -L -O https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-${SONAR_VERSION}.zip \ | ||
&& rm -rf /var/cache/apk/* \ | ||
# get SonarQube | ||
&& curl --fail --remote-name --location https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-${SONAR_VERSION}.zip \ | ||
&& unzip sonarqube-${SONAR_VERSION}.zip \ | ||
&& mv sonarqube-${SONAR_VERSION} ${SONARQUBE_HOME} \ | ||
&& rm -rf /var/cache/apk/* \ | ||
# create user | ||
# get sonar-cas-plugin | ||
&& curl --fail --location https://github.com/cloudogu/sonar-cas-plugin/releases/download/v${CAS_PLUGIN_VERSION}/sonar-cas-plugin-${CAS_PLUGIN_VERSION}.jar --output ${SONARQUBE_HOME}/extensions/plugins/sonar-cas-plugin-${CAS_PLUGIN_VERSION}.jar \ | ||
# create sonar user | ||
&& addgroup -S -g 1000 sonar \ | ||
&& adduser -S -h "$SONARQUBE_HOME" -s /bin/bash -G sonar -u 1000 sonar \ | ||
&& chown -R sonar:sonar ${SONARQUBE_HOME} | ||
&& adduser -S -h "$SONARQUBE_HOME" -s /bin/bash -G sonar -u 1000 sonar | ||
|
||
# Copy resources | ||
# Includes copying sonar-cas plugin (into wrong folder; correct folder would be: /var/lib/sonar/extensions/plugins/) | ||
# is moved to right folder via startup.sh | ||
COPY ./resources / | ||
|
||
RUN chown -R sonar:sonar ${SONARQUBE_HOME} | ||
|
||
EXPOSE 9000 | ||
|
||
USER sonar | ||
|
||
CMD ["/startup.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ module.exports = { | |
password: 'ecosystem2016', | ||
firstname:'admin', | ||
lastname: 'admin', | ||
displayName: 'ces-admin', | ||
displayName: 'admin', | ||
email: '[email protected]', | ||
webdriverType: webdriverType, | ||
debug: true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.