File tree 6 files changed +33
-7
lines changed
6 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 59
59
- name : Download dependencies
60
60
run : |
61
61
mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.8.1:go-offline de.qaware.maven:go-offline-maven-plugin:1.2.8:resolve-dependencies -Pci,flink-1.19
62
- mvn -B -f flink-sql-runner/pom.xml org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources com.marvinformatics:docker-compose-maven-plugin:5.0.0:pull -Pci,flink-1.19
62
+ mvn -B -f flink-sql-runner/pom.xml org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources -Pci,flink-1.19
63
+ grep '^FROM' flink-sql-runner/target/Dockerfile | awk '{print $2}' | xargs -n1 docker pull
63
64
64
65
- name : Update version
65
66
if : github.event_name == 'release' && github.event.action == 'created'
Original file line number Diff line number Diff line change 62
62
- name : Download dependencies
63
63
run : |
64
64
mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.8.1:go-offline de.qaware.maven:go-offline-maven-plugin:1.2.8:resolve-dependencies -P${{ matrix.FLINK_PROFILE }}
65
- mvn -B -f flink-sql-runner/pom.xml org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources com.marvinformatics:docker-compose-maven-plugin:5.0.0:pull -P${{ matrix.FLINK_PROFILE }}
65
+ mvn -B -f flink-sql-runner/pom.xml org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources -P${{ matrix.FLINK_PROFILE }}
66
+ grep '^FROM' flink-sql-runner/target/Dockerfile | awk '{print $2}' | xargs -n1 docker pull
66
67
67
68
- name : Update version
68
69
if : github.event_name == 'release' && github.event.action == 'created'
Original file line number Diff line number Diff line change 258
258
</executions >
259
259
</plugin >
260
260
261
+ <plugin >
262
+ <groupId >org.codehaus.mojo</groupId >
263
+ <artifactId >exec-maven-plugin</artifactId >
264
+ <version >${exec.plugin.version} </version >
265
+ <executions >
266
+ <execution >
267
+ <id >build-docker-image</id >
268
+ <goals >
269
+ <goal >exec</goal >
270
+ </goals >
271
+ <phase >package</phase >
272
+ <configuration >
273
+ <workingDirectory >${project.basedir} /target/</workingDirectory >
274
+ <executable >docker</executable >
275
+ <skip >${skipTests} </skip >
276
+ <arguments >
277
+ <argument >build</argument >
278
+ <argument >--tag</argument >
279
+ <argument >flink-sql-runner</argument >
280
+ <argument >.</argument >
281
+ </arguments >
282
+ </configuration >
283
+ </execution >
284
+ </executions >
285
+ </plugin >
261
286
<plugin >
262
287
<groupId >com.marvinformatics</groupId >
263
288
<artifactId >docker-compose-maven-plugin</artifactId >
Original file line number Diff line number Diff line change @@ -18,3 +18,4 @@ FROM flink:${flink-base-image}
18
18
19
19
RUN mkdir -p /opt/flink/plugins/flink-jar-runner
20
20
COPY flink-jar-runner.uber.jar /opt/flink/plugins/flink-jar-runner
21
+ COPY system-functions-discovery-${project.version}.jar /opt/flink/lib/system-functions-discovery.jar
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ services:
40
40
- datasqrl_network
41
41
42
42
jobmanager :
43
- image : flink:${flink-base-image}
43
+ image : flink-sql-runner
44
44
environment :
45
45
- JDBC_URL=jdbc:postgresql://postgres:5432/datasqrl
46
46
- JDBC_USERNAME=postgres
@@ -64,7 +64,6 @@ services:
64
64
- ./test-classes/:/opt/flink/usrlib/
65
65
- ./test-classes/datasources/:/datasources/
66
66
- /tmp:/tmp
67
- - ./system-functions-discovery-${project.version}.jar:/opt/flink/lib/system-functions-discovery.jar
68
67
- ./test-classes/systemfunction/system-functions-sample-${project.version}.jar:/opt/flink/lib/systemfunction.jar
69
68
healthcheck :
70
69
test : ["CMD-SHELL", "curl -f http://localhost:8081/ || exit 1"]
@@ -80,7 +79,7 @@ services:
80
79
- datasqrl_network
81
80
82
81
taskmanager :
83
- image : flink:${flink-base-image}
82
+ image : flink-sql-runner
84
83
environment :
85
84
- JDBC_URL=jdbc:postgresql://postgres:5432/datasqrl
86
85
- JDBC_USERNAME=postgres
@@ -100,7 +99,6 @@ services:
100
99
- ./test-classes/:/opt/flink/usrlib/
101
100
- ./test-classes/datasources/:/datasources/
102
101
- /tmp:/tmp
103
- - ./system-functions-discovery-${project.version}.jar:/opt/flink/lib/system-functions-discovery.jar
104
102
- ./test-classes/systemfunction/system-functions-sample-${project.version}.jar:/opt/flink/lib/systemfunction.jar
105
103
restart : always
106
104
deploy :
Original file line number Diff line number Diff line change 420
420
<excludeArtifact >system-functions-sample</excludeArtifact >
421
421
<excludeArtifact >udf-sample</excludeArtifact >
422
422
</excludeArtifacts >
423
-
423
+
424
424
<autoPublish >true</autoPublish >
425
425
</configuration >
426
426
</plugin >
You can’t perform that action at this time.
0 commit comments