• docker--Dockerfile--sonarqube


    FROM openjdk:8

    ENV SONAR_VERSION=6.7.1
    SONARQUBE_HOME=/opt/sonarqube
    # Database configuration
    # Defaults to using H2
    SONARQUBE_JDBC_USERNAME=sonar
    SONARQUBE_JDBC_PASSWORD=sonar
    SONARQUBE_JDBC_URL=

    # Http port
    EXPOSE 9000

    RUN groupadd -r sonarqube && useradd -r -g sonarqube sonarqube

    # grab gosu for easy step-down from root
    RUN set -x
    && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.10/gosu-$(dpkg --print-architecture)"
    && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/1.10/gosu-$(dpkg --print-architecture).asc"
    && export GNUPGHOME="$(mktemp -d)"
    && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
    && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu
    && rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc
    && chmod +x /usr/local/bin/gosu
    && gosu nobody true

    RUN set -x

    # pub 2048R/D26468DE 2015-05-25
    # Key fingerprint = F118 2E81 C792 9289 21DB CAB4 CFCA 4A29 D264 68DE
    # uid sonarsource_deployer (Sonarsource Deployer) <infra@sonarsource.com>
    # sub 2048R/06855C1D 2015-05-25
    && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys F1182E81C792928921DBCAB4CFCA4A29D26468DE

    && cd /opt
    && curl -o sonarqube.zip -fSL https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-$SONAR_VERSION.zip
    && curl -o sonarqube.zip.asc -fSL https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-$SONAR_VERSION.zip.asc
    && gpg --batch --verify sonarqube.zip.asc sonarqube.zip
    && unzip sonarqube.zip
    && mv sonarqube-$SONAR_VERSION sonarqube
    && chown -R sonarqube:sonarqube sonarqube
    && rm sonarqube.zip*
    && rm -rf $SONARQUBE_HOME/bin/*

    VOLUME "$SONARQUBE_HOME/data"

    WORKDIR $SONARQUBE_HOME
    COPY run.sh $SONARQUBE_HOME/bin/
    ENTRYPOINT ["./bin/run.sh"]

  • 相关阅读:
    elementplus 按需引入将英文组件修改为中文
    vue3动态组件的展示
    vue3中的四种插槽的介绍保证让你看看的明明白白!
    发福利了!!!团队机器人每日分享最新漏洞验证脚本数据库文件分享!
    selenium 获取token
    7个开源交易撮合引擎
    【Anyhow】错误向下转型
    【Axum】全局 404 处理
    【Axum】获取查询参数
    【Axum】修改返回状态码
  • 原文地址:https://www.cnblogs.com/kuku0223/p/8436852.html
Copyright © 2020-2023  润新知