-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
820 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!Dockerfile | ||
!build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM airbyte/base-java:dev | ||
|
||
WORKDIR /airbyte | ||
|
||
# fixme - replace java-template with the name of directory that this file is in. | ||
ENV APPLICATION postgres-destination | ||
|
||
COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar | ||
|
||
RUN tar xf ${APPLICATION}.tar --strip-components=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage | ||
plugins { | ||
id 'com.bmuschko.docker-remote-api' | ||
id 'application' | ||
} | ||
|
||
sourceSets { | ||
integrationTest { | ||
java { | ||
srcDir 'src/test-integration/java' | ||
} | ||
resources { | ||
srcDir 'src/test-integration/resources' | ||
} | ||
} | ||
} | ||
test.dependsOn('compileIntegrationTestJava') | ||
|
||
configurations { | ||
integrationTestImplementation.extendsFrom testImplementation | ||
integrationTestRuntimeOnly.extendsFrom testRuntimeOnly | ||
} | ||
|
||
dependencies { | ||
implementation project(':airbyte-config:models') | ||
implementation project(':airbyte-db') | ||
implementation project(':airbyte-integrations:base-java') | ||
implementation project(':airbyte-queue') | ||
implementation project(':airbyte-singer') | ||
|
||
testImplementation "org.testcontainers:postgresql:1.15.0-rc2" | ||
|
||
integrationTestImplementation project(':airbyte-integrations:integration-test-lib') | ||
integrationTestImplementation project(':airbyte-integrations:postgres-destination') | ||
integrationTestImplementation "org.testcontainers:postgresql:1.15.0-rc2" | ||
} | ||
|
||
application { | ||
mainClass = 'io.airbyte.integrations.destination.postgres.PostgresDestination' | ||
} | ||
|
||
|
||
def image = 'airbyte/airbyte-postgres-destination:dev' | ||
|
||
task imageName { | ||
doLast { | ||
println "IMAGE $image" | ||
} | ||
} | ||
|
||
task buildImage(type: DockerBuildImage) { | ||
inputDir = projectDir | ||
images.add(image) | ||
dependsOn ':airbyte-integrations:base-java:buildImage' | ||
} | ||
|
||
task integrationTest(type: Test) { | ||
testClassesDirs += sourceSets.integrationTest.output.classesDirs | ||
classpath += sourceSets.integrationTest.runtimeClasspath | ||
|
||
useJUnitPlatform() | ||
testLogging() { | ||
events "passed", "failed" | ||
exceptionFormat "full" | ||
} | ||
|
||
mustRunAfter test | ||
dependsOn(buildImage) | ||
} | ||
|
Oops, something went wrong.