update versions
This commit is contained in:
@@ -5,7 +5,7 @@ LABEL io.hass.name="SonarQube"
|
||||
LABEL io.hass.description="SonarQube Server helps you comply with common code security standards, such as the NIST SSDF, OWASP, CWE, STIG, and CASA."
|
||||
LABEL io.hass.arch="amd64|aarch64"
|
||||
LABEL io.hass.type="addon"
|
||||
LABEL io.hass.version="0.0.2-beta"
|
||||
LABEL io.hass.version="0.0.3-beta"
|
||||
|
||||
# Build parameters
|
||||
ARG SONARQUBE_VERSION=9.9.6.92038
|
||||
@@ -36,9 +36,8 @@ RUN curl -L "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-$
|
||||
COPY run.sh /usr/local/bin/run.sh
|
||||
RUN chmod +x /usr/local/bin/run.sh
|
||||
|
||||
# Expose the internal port (always 9000)
|
||||
# Expose the internal port
|
||||
EXPOSE 9000
|
||||
|
||||
# Run as the 'sonarqube' user
|
||||
USER sonarqube
|
||||
# All setup (timezone, mkdir) runs as root; run.sh will drop to sonarqube
|
||||
ENTRYPOINT ["/usr/local/bin/run.sh"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "SonarQube",
|
||||
"version": "0.0.2-beta",
|
||||
"version": "0.0.3-beta",
|
||||
"slug": "sonarqube",
|
||||
"description": "SonarQube Server helps you comply with common code security standards, such as the NIST SSDF, OWASP, CWE, STIG, and CASA.",
|
||||
"arch": ["amd64", "armv7", "aarch64"],
|
||||
@@ -11,7 +11,6 @@
|
||||
"options": {
|
||||
"data_path": "/share/sonarqube/data",
|
||||
"extensions_path": "/share/sonarqube/extensions",
|
||||
"ui_port": 9000,
|
||||
"jdbc_url": "jdbc:postgresql://sonarqube_db:5432/sonar",
|
||||
"jdbc_username": "",
|
||||
"jdbc_password": "",
|
||||
@@ -20,7 +19,6 @@
|
||||
"schema": {
|
||||
"data_path": "str",
|
||||
"extensions_path": "str",
|
||||
"ui_port": "int",
|
||||
"jdbc_url": "str",
|
||||
"jdbc_username": "str",
|
||||
"jdbc_password": "str",
|
||||
|
||||
@@ -12,17 +12,18 @@ set -e
|
||||
: "${SONAR_JDBC_PASSWORD:?Serve SONAR_JDBC_PASSWORD}"
|
||||
|
||||
# --- Imposto timezone a container start ---
|
||||
ln -snf "/usr/share/zoneinfo/${TZ}" /etc/localtime && echo "${TZ}" > /etc/timezone
|
||||
ln -snf "/usr/share/zoneinfo/${TZ}" /etc/localtime
|
||||
echo "${TZ}" > /etc/timezone
|
||||
|
||||
# --- Creo e monto le cartelle host in container ---
|
||||
mkdir -p "${DATA_PATH}" "${EXT_PATH}"
|
||||
cd "${SONARQUBE_HOME}"
|
||||
|
||||
# sposto le cartelle interne originali (evt. backup)
|
||||
[ -d data ] && mv data data.orig || true
|
||||
[ -d extensions ]&& mv extensions extensions.orig || true
|
||||
# Sposto le cartelle interne originali (evt. backup)
|
||||
[ -d data ] && mv data data.orig || true
|
||||
[ -d extensions ] && mv extensions extensions.orig || true
|
||||
|
||||
# link simbolici verso le cartelle condivise
|
||||
# Link simbolici verso le cartelle condivise
|
||||
ln -s "${DATA_PATH}" data
|
||||
ln -s "${EXT_PATH}" extensions
|
||||
|
||||
@@ -31,5 +32,5 @@ export SONAR_JDBC_URL
|
||||
export SONAR_JDBC_USERNAME
|
||||
export SONAR_JDBC_PASSWORD
|
||||
|
||||
# --- Avvio SonarQube in foreground ---
|
||||
exec "${SONARQUBE_BIN}/sonar.sh" console
|
||||
# --- Avvio SonarQube in foreground come utente non-root ---
|
||||
exec su-exec sonarqube "${SONARQUBE_BIN}/sonar.sh" console
|
||||
|
||||
Reference in New Issue
Block a user