我正在使用非阻塞数据库驱动程序r2dbc开发 springboot webflux 项目,
但是当 Springboot 应用程序启动时 Flyway 不会运行迁移。下面是我的 spring-boot pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.2.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>r2dbmigration</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>r2dbmigration</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot.experimental</groupId>
<artifactId>spring-boot-starter-data-r2dbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
<dependency>
<groupId>io.r2dbc</groupId>
<artifactId>r2dbc-postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency> …Run Code Online (Sandbox Code Playgroud) 我计划使用 terraform 在 K8S 上设置 jenkins 管道来提供我的 CI/CD 环境。
我正在使用Terraform v0.12.18
我的 terraform 文件具有以下资源
resource "helm_release" "jenkins-master" {
name = "jenkins"
chart = "jenkins"
version = "7.0.3"
repository = "https://charts.bitnami.com/bitnami"
set {
name = "jenkinsUser"
value = "admin"
}
set {
name = "jenkinsPassword"
value = "admin"
}
}
Run Code Online (Sandbox Code Playgroud)
当我运行 terraform apply -input=false Provision-plan时
我收到以下错误。
Error: failed to download "https://charts.bitnami.com/bitnami/jenkins-7.0.3.tgz" (hint: running `helm repo update` may help)
Run Code Online (Sandbox Code Playgroud)
但是当我使用直接运行 helm install 时
helm 安装 my-jenkins bitnami/jenkins --version 7.0.3
然后詹金斯得到安装。 …
bitnami terraform jenkins-pipeline kubernetes-helm kubernetes-jenkins-plugin