2 Star 43 Fork 30

open-hand / devops-service

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
init-database.sh 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
王灏 提交于 2021-12-02 14:51 . [FIX] 调整表结构
#!/usr/bin/env bash
MAVEN_LOCAL_REPO=$(cd / && mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)
TOOL_GROUP_ID=io.choerodon
TOOL_ARTIFACT_ID=choerodon-tool-liquibase
TOOL_VERSION=0.17.2.RELEASE
TOOL_JAR_PATH=${MAVEN_LOCAL_REPO}/${TOOL_GROUP_ID/\./\/}/${TOOL_ARTIFACT_ID}/${TOOL_VERSION}/${TOOL_ARTIFACT_ID}-${TOOL_VERSION}.jar
mvn org.apache.maven.plugins:maven-dependency-plugin:get \
-Dartifact=${TOOL_GROUP_ID}:${TOOL_ARTIFACT_ID}:${TOOL_VERSION} \
-Dtransitive=false
java -Dspring.datasource.url="jdbc:mysql://localhost:33306/?serverTimezone=CTT&useUnicode=true&characterEncoding=utf-8&useSSL=false&useInformationSchema=true&remarks=true" \
-Dspring.datasource.username=root \
-Dspring.datasource.password=root \
-Dspring.datasource.driver-class-name=com.mysql.jdbc.Driver \
-Dinstaller.datasources.platform.url="jdbc:mysql://localhost:33306/?useUnicode=true&characterEncoding=utf-8&useSSL=false&useInformationSchema=true&remarks=true" \
-Dinstaller.datasources.platform.username=root \
-Dinstaller.datasources.platform.password=root \
-Ddata.init=true \
-Dlogging.level.root=info \
-Dinstaller.jarPath=target/app.jar \
-Dinstaller.jarPath.init=true \
-jar ${TOOL_JAR_PATH}
Java
1
https://gitee.com/open-hand/devops-service.git
git@gitee.com:open-hand/devops-service.git
open-hand
devops-service
devops-service
master

搜索帮助