• 部署敏捷管理

    在此之前,应该准备好Mysql、Harbor、Gitlab、Minio,Chartmuseum这些组件的信息。按以下搭建顺序进行搭建,请不要随意调整搭建顺序。

    添加choerodon chart仓库

    helm repo add c7n https://openchart.choerodon.com.cn/choerodon/c7n/
    helm repo update
    

    创建数据库

    helm install c7n/mysql-client \
        --set env.MYSQL_HOST=c7n-mysql.c7n-system.svc \
        --set env.MYSQL_PORT=3306 \
        --set env.MYSQL_USER=root \
        --set env.MYSQL_PASS=password \
        --set env.SQL_SCRIPT="\
              CREATE USER IF NOT EXISTS 'choerodon'@'%' IDENTIFIED BY 'password';\
              CREATE DATABASE IF NOT EXISTS agile_service DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;\
              CREATE DATABASE IF NOT EXISTS state_machine_service DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;\
              CREATE DATABASE IF NOT EXISTS issue_service DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;\
              CREATE DATABASE IF NOT EXISTS foundation_service DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;\
              GRANT ALL PRIVILEGES ON agile_service.* TO choerodon@'%'; \
              GRANT ALL PRIVILEGES ON state_machine_service.* TO choerodon@'%';\
              GRANT ALL PRIVILEGES ON issue_service.* TO choerodon@'%';\
              GRANT ALL PRIVILEGES ON foundation_service.* TO choerodon@'%';\
              FLUSH PRIVILEGES;" \
        --version 0.1.0 \
        --name create-c7nagile-db \
        --namespace c7n-system
    

    部署agile service

    部署state machine service

    部署issue service

    部署foundation service