Skip to content

Commit 9da0d52

Browse files
committed
apply head to wall
1 parent 18c39e1 commit 9da0d52

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

airbyte-server/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ dependencies {
4141
testImplementation "org.testcontainers:postgresql:1.15.1"
4242
}
4343

44+
// we want to be able to access the generated db files from config/init when we build the server docker image.
45+
task copySeed(type: Copy, dependsOn: [project(':airbyte-config:init').processResources]) {
46+
from "${project(':airbyte-config:init').buildDir}/resources/main/config"
47+
into "${buildDir}/config_init/resources/main/config"
48+
}
49+
50+
// need to make sure that the files are in the resource directory before copying.
51+
//project.tasks.copySeed.mustRunAfter(project(':airbyte-config:init').tasks.processResources)
52+
assemble.dependsOn(project.tasks.copySeed)
53+
4454
application {
4555
mainClass = 'io.airbyte.server.ServerApp'
4656
}
@@ -60,5 +70,4 @@ run {
6070
environment "AIRBYTE_VERSION", env.VERSION
6171
environment "AIRBYTE_ROLE", System.getenv('AIRBYTE_ROLE')
6272
environment "TEMPORAL_HOST", "localhost:7233"
63-
6473
}

0 commit comments

Comments
 (0)