Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Merge from main-3 #5955

Merged
merged 121 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
ca48ed3
Update build files for main-3 [skip-ci]
onobc Jan 24, 2024
2003077
Update SCDF to use Boot 3.2.2
cppwfs Jan 16, 2024
15712ec
Make SCDF and Skipper compilable for boot 3.x
cppwfs Jan 25, 2024
67d3bd1
Update SCDF so that it can be compiled with Boot 3.2.x. Part 3
cppwfs Jan 25, 2024
5182aec
Remove dependency overrides from 2.11.x (Boot 2.x)
cppwfs Feb 6, 2024
4aa0ebe
Remove duplicated maven-source-plugin from `spring-cloud-dataflow-com…
onobc Feb 6, 2024
836042c
Remove <dependencyManagement> of `testcontainers-bom`
onobc Feb 7, 2024
a9fc0b4
Remove remaining dependency override of snakeyaml.
onobc Feb 7, 2024
ee6e456
Remove <dependencyManagement> of `junit-jupiter-bom`
onobc Feb 7, 2024
0dd0b5c
Remove dependency override of json-smart.
onobc Feb 7, 2024
13a8854
Remove <dependencyManagement> of `postgresql`
onobc Feb 7, 2024
093105b
Remove unused `spring.version` property
onobc Feb 7, 2024
39c1bef
Update DockerCompose tests to Junit5
onobc Feb 7, 2024
27d9941
Use AutoConfiguration.imports for all auto-configs
onobc Feb 8, 2024
de58247
Fix startup and EPP ordering (#5670)
onobc Feb 9, 2024
04224c4
Fix tests for rest-resource (SCDF3 migration)
onobc Feb 9, 2024
6bfe953
Fix tests for rest-client (SCDF3 migration)
onobc Feb 9, 2024
e12c62c
Update SpringDoc OpenAPI to latest 2.x
onobc Feb 9, 2024
317a4b8
Change vscode settings
jvalkeal Feb 12, 2024
a37cf87
Use config legacy processing in Skipper (#5673)
jvalkeal Feb 12, 2024
9919888
Refactor TaskLauncherSink to SCSt Consumer
Feb 9, 2024
5e650bc
Add Autoconfiguration.imports to resource includes in pom.xmls
cppwfs Feb 14, 2024
72e9bdb
Add metrics exclusions till metric migration is complete
cppwfs Feb 14, 2024
5bf0033
Stub out DataflowPagingProvider to allow Dataflow to start (#5679)
cppwfs Feb 15, 2024
48e3eba
What was done
cppwfs Feb 8, 2024
c9cf654
Update Tests to resolve failures due to updated dependency versions (…
cppwfs Feb 17, 2024
22df7b4
Add skipper to vscode launch config
jvalkeal Feb 20, 2024
99c09ef
Use the single hibernate_sequence strategy
onobc Feb 17, 2024
0be6948
Fix SpringDocAutoConfigurationTests
onobc Feb 17, 2024
3cdc12f
Overhaul metric deps and options
jvalkeal Feb 20, 2024
340bd27
Disable all tests that are failling because of schema changes. (#5688)
cppwfs Feb 21, 2024
411d625
Remove trailing slashes from controller tests (#5693)
cppwfs Feb 22, 2024
50b0bea
Add DatabaseAwareLobUserType for @Lob columns
onobc Feb 17, 2024
c32d6d0
Fix DefaultPackageReader for Snakeyaml 2.0
onobc Feb 22, 2024
8a7d708
Remove unused spring-boot-loader dependency
onobc Feb 22, 2024
32fc5b7
Added DockerHub login to CI to prevent failure of TestContainer tests…
Feb 22, 2024
bed42bf
Reuse CriteriaQuery when retrieving result count. (#5702)
cppwfs Feb 22, 2024
39715e9
Update spring-statemachine to 4.0.0 (#5707)
jvalkeal Feb 27, 2024
9baf3a7
Update Code to use JobRepository bean directly
cppwfs Feb 21, 2024
21f5988
Adjust metrics replicator for Spring Boot 3
onobc Feb 27, 2024
2b6310f
Update ci.yml free diskspace
Feb 28, 2024
2f05ded
Update prometheus-rsocket-proxy to 1.6.0-SNAPSHOT
onobc Feb 27, 2024
c1f4178
Replace job execution and task batch containers with Task implementat…
cppwfs Feb 27, 2024
8a790c1
Use DataflowTaskExecutionMetadataDao in the place of DataflowTaskExec…
cppwfs Feb 28, 2024
67ff52a
Adjust order of DefaultEnvironmentPostProcessor
onobc Mar 2, 2024
64f8bd0
Fix skipper_manifest.data column oid to text conversion that was missed.
Mar 4, 2024
3eea971
Migrate Task Components to Boot 3, Task 3
cppwfs Mar 1, 2024
ab68195
Update Spring Cloud Deployer to 3.0.0-SNAPSHOT
onobc Mar 5, 2024
f59a308
Use CLASSIC boot loader
onobc Mar 5, 2024
fdd16c4
Remove extra Spring Cloud Task transaction manager
onobc Mar 6, 2024
92b09e8
Upgrade spring-shell 3.2.2 (#5722)
jvalkeal Mar 7, 2024
b81fa8e
Update Job to Batch 5 and remove schema usage
cppwfs Mar 5, 2024
7a6567b
Give SCDF ability to compile and run tests to completion
cppwfs Mar 13, 2024
a17662f
Update DAOs to no longer use aggregate
cppwfs Mar 18, 2024
6672707
Remove schema-core module from scdf-core module
cppwfs Mar 26, 2024
346507a
Added <argLine>--add-opens java.base/java.util=ALL-UNNAMED</argLine> …
Mar 28, 2024
da89b69
Move DataflowTaskExplorer and associated classes to server core (#5754)
cppwfs Mar 28, 2024
047b373
Update versions for Skipper.
Mar 20, 2024
afd208b
Switch to non-blocking call in action
jvalkeal Apr 8, 2024
015abe1
Setup new apps for skipper tests
jvalkeal Apr 8, 2024
60bbaa1
Remove DataflowSqlPagingQueryUtils as it is unused
cppwfs Apr 5, 2024
d11a80d
SCDF does not need to support JSR-352 as of Batch 5.
cppwfs Apr 8, 2024
e23a884
Resolve JobExecution Search by date test failure
cppwfs Apr 26, 2024
f121f32
Add MAX_START_WAIT_TIME property to CTR
Clemens-L Sep 28, 2023
b59a883
stream update should not require --properties (#5785)
cppwfs Apr 24, 2024
250066f
Added TaskExecutionThinController and TaskExecutionThinResource.
Mar 22, 2024
a625cbf
Migrate SCDF-SINGLE-STEP-BATCH-JOB to Boot3 Batch 5
cppwfs Apr 5, 2024
2ab899e
Updated representation of start time and date given timezone.
Apr 4, 2024
8da50cf
Temporarily disable Skpr auto config tests till full migration
cppwfs Apr 29, 2024
f9b00c8
Version updates and cleanup on Skipper files.
Apr 29, 2024
778028f
Update classic doc to remove boot 3and boot schema
May 3, 2024
d026f01
A document test requires generateJumpToItemQuery that is not available
cppwfs May 3, 2024
1c6e8be
DataflowSqlPagingQueryProvider (#5757)
May 6, 2024
e65ecef
Upgrade spring-shell 3.2.4
jvalkeal May 9, 2024
caae5f1
Provider for trying OCI accepts header when manifest result returns n…
May 22, 2024
9fbfef3
Update to Spring Boot 3.3.0
onobc Jun 5, 2024
2ba3f6a
Update to Flyway 10.10.0
onobc Jun 5, 2024
b039b98
Update various dependencies
onobc Jun 5, 2024
8fe4069
Continue using prometheus 0.x client
onobc Jun 5, 2024
0248a28
the document plugin needs to use the current spring javadoc
cppwfs May 30, 2024
17804c7
User needs ability to specify app version when creating schedule
cppwfs May 29, 2024
316cf77
[CI] Remove unused labeler workflow (#5840)
onobc Jun 13, 2024
fec5fde
Add trailing slash to dashboard (#5811)
jvalkeal Jun 13, 2024
ebe2ce8
Add JDK 21 and remove 8, 11 from build-images.
Jun 7, 2024
ff19e23
Remove thinTaskExecutionList from TaskTemplate (#5842)
cppwfs Jun 17, 2024
e1c8485
Migrate CTR to Boot 3.x and Batch 5.x (#5839)
cppwfs Aug 1, 2024
b61c3c9
Update to prometheus-rsocket-proxy 2.0.0-M1 (#5888)
onobc Aug 12, 2024
be08425
Update Prometheus metrics prop names (Boot 3.x)
onobc Aug 5, 2024
8c2b07f
Update Influx metrics prop names (Boot 3.x)
onobc Aug 5, 2024
967c15e
Update metric prop names env vars (#5894)
onobc Aug 12, 2024
a362397
Update metric prop names in yaml files (#5895)
onobc Aug 12, 2024
9fd4901
Update all module except spring-cloud-dataflow-common-test-docker to …
Aug 15, 2024
7893ef1
Update gitignore for generated gradle files
jvalkeal Aug 19, 2024
834d50c
Add import order to vscode settings
jvalkeal Aug 19, 2024
50f1e20
Remove jdk8 from spring-cloud-dataflow-server
jvalkeal Aug 19, 2024
6939d6a
Merge branch 'main-3' into corneil/main3-junit5
Aug 19, 2024
e17b570
Need to select the serialization method for JobParameters for the com…
cppwfs Jun 25, 2024
7d1037e
Fix rest docs tests. Updated to usage of latest stream apps and tasks.
Aug 19, 2024
89b8932
Merge branch 'main-3' into corneil/main3-junit5
Aug 19, 2024
538d1fe
Remove .jdk8 files. (#5900)
Aug 20, 2024
6570991
Fix more previously disabled tests.
Aug 20, 2024
d9bb024
Update SCDF so that multipleComposedTaskWithArguments succeeds
cppwfs Aug 13, 2024
791ff60
Remove .jdk8 files. (#5900)
Aug 20, 2024
5c323dc
Update SCDF so that multipleComposedTaskWithArguments succeeds
cppwfs Aug 13, 2024
b1028e6
Update apps version refs to 5.0.0 / 3.0.0 (#5896)
onobc Aug 21, 2024
d9f39ea
Update with merge from main-3
Aug 22, 2024
2a08167
Update with merge from main-3
Aug 22, 2024
b515672
Remove metrics auto-config exclusions (#5902)
onobc Aug 22, 2024
54fb006
Update documentation for initContainers addition in https://github.co…
Jul 9, 2024
c31a8d6
SCDF should be able to migrate a schema from 2.10 to 3.0
cppwfs Aug 19, 2024
65989eb
Forward port ctr status on Thin Controller. (#5906)
Aug 27, 2024
9264222
Enable MariadbSharedDbIT (#5908)
onobc Aug 27, 2024
880b0eb
Update tracing props (#5925)
onobc Sep 5, 2024
b983044
Fix substitution in github-release.yml [skip ci]
Sep 13, 2024
76058d3
Fix tracing properties in docker compose (#5946)
onobc Sep 23, 2024
646f1e7
Merging and resolved errors and test failures.
Sep 27, 2024
7a8f337
Updates for JUnit5 and AssertJ
Sep 30, 2024
5343bc1
CI requires Java 17.
Sep 30, 2024
6951b68
Updated based on comments.
Oct 1, 2024
5e0bd9e
Updated based on comments.
Oct 1, 2024
54e9b81
Fixed imports
Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/actions/build-images/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ if [ "$TAG" == "" ]; then
exit 1
fi
if [ "$DEFAULT_JDK" = "" ]; then
echo "DEFAULT_JDK not found using 11"
DEFAULT_JDK=11
echo "DEFAULT_JDK not found using 17"
DEFAULT_JDK=17
else
echo "DEFAULT_JDK=$DEFAULT_JDK"
fi
Expand All @@ -20,7 +20,7 @@ function pack_image {
fi
echo "Creating: $REPO:$TAG-jdk$v"
# --buildpack "paketo-buildpacks/[email protected]" --buildpack "paketo-buildpacks/[email protected]"
pack build --builder gcr.io/paketo-buildpacks/builder:base \
pack build --builder paketobuildpacks/builder-jammy-base:latest \
--path "$JAR" \
--trust-builder --verbose \
--env BP_JVM_VERSION=$v "$REPO:$TAG-jdk$v"
Expand All @@ -37,7 +37,7 @@ for ((i = 0; i < LEN; i++)); do
IMAGE="$(jq -r --argjson index $i '.include[$index] | .image' .github/workflows/images.json)"
ARTIFACT_ID="$(jq -r --argjson index $i '.include[$index] | .name' .github/workflows/images.json)"
# 8 11 17 21
for v in 8 11 17; do
for v in 17 21; do
pack_image "$TARGET/$ARTIFACT_ID" $IMAGE $v $ARTIFACT_ID
RC=$?
if [ $RC -ne 0 ]; then
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ if [ "$TAG" == "" ]; then
exit 1
fi
if [ "$DEFAULT_JDK" = "" ]; then
echo "DEFAULT_JDK not found using 11"
DEFAULT_JDK=11
echo "DEFAULT_JDK not found using 17"
DEFAULT_JDK=17
else
echo "DEFAULT_JDK=$DEFAULT_JDK"
fi
Expand Down Expand Up @@ -55,7 +55,8 @@ if [ ! -f "$JAR" ]; then
exit $RC
fi
fi
for v in 8 11 17; do
# TODO add Java 21 when packeto supports it
for v in 17; do
echo "Creating: $REPO:$TAG-jdk$v"
pack build --builder gcr.io/paketo-buildpacks/builder:base \
--path "$JAR" \
Expand Down Expand Up @@ -93,9 +94,5 @@ for v in 8 11 17; do
fi
fi
done
#if [ "$PUSH" == "true" ]; then
# echo "Pruning Docker"
# docker system prune -f
# docker system prune --volumes -f
#fi


6 changes: 3 additions & 3 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- name: Load matrix
id: matrix
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- name: Install pack
uses: jvalkeal/[email protected]
Expand All @@ -81,7 +81,7 @@ jobs:
shell: bash
env:
TAG: ${{ needs.prepare.outputs.version }}
DEFAULT_JDK: '11'
DEFAULT_JDK: '17'
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
DELETE_TAGS: ${{ inputs.delete-tags }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-snapshot-controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
"workflow_dispatch": {
"owner": "spring-cloud",
"repo": "spring-cloud-dataflow-ui",
"ref": "main",
"ref": "main-3",
"workflow": "build-snapshot-worker.yml"
}
},
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-snapshot-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
${{ runner.os }}-m2-${{ matrix.db }}
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-uaa-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
path: src/docker/uaa/uaa
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- name: Build UAA Test Image
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-java@v3
if: ${{ inputs.version == null || inputs.version == '' }}
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- name: Version from POM
if: ${{ inputs.version == null || inputs.version == '' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-it-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand All @@ -40,7 +40,7 @@ jobs:
-Dgroups=${{ matrix.group }} \
-Pfailsafe \
--batch-mode \
test
verify
- name: Integration Test Report for ${{ matrix.group }}
id: test_report
uses: dorny/test-reporter@v1
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-it-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand All @@ -37,7 +37,7 @@ jobs:
-Dgroups=performance \
-Pfailsafe \
--batch-mode \
test
verify
- name: Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-it-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- name: Build
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# jdk8
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
${{ runner.os }}-m2-${{ matrix.db }}
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fix-deployment-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Fix Deployment Files
on:
push:
branches:
- main
- main-3

jobs:
build:
Expand All @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/milestone-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/next-dev-version-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/schedule-train-builds.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/workflow.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
= Workflow Reference

This README serves as a guide to the GitHub Action workflows included in this repository.
It outlines the purpose and functionality of each workflow, detailing their role in the CI and release processes.
Additionally, this document provides an overview of the scripts and actions utilized in these workflows, offering insights into how they work together in SCDF's CI/CD pipeline.

This document is a work in progress, and as various workflows are updated, the documentation will be revised to reflect both existing and new behaviors.


== Building Docker Images and pushing the containers to DockerHub
.This diagram shows the flow of execution of how workflows create Docker imges.
```
┌─────────────────────────┐
│ │
│ │
│build-snapshot-worker.yml┼────┐
│ │ │
│ │ │
└─────────────────────────┘ │
┌─────────────────────────┐ │
│ │ │
│ │ │
│ ci-images.yml ┼────┤ ┌─────────────────────────┐ ┌─────────────────────────┐
│ │ │ │ │ │ │
│ │ │ │ │ │ │
└─────────────────────────┘ ├────►│ build-images.yml ┼────────►│ build-image.sh │
┌─────────────────────────┐ │ │ │ │ │
│ │ │ │ │ │ │
│ │ │ └───────────┬─────────────┘ └─────────────────────────┘
│ ci.yml ┼────┤ │
│ │ │ │
│ │ │ ┌───────────┴─────────────┐
└─────────────────────────┘ │ │ │
┌─────────────────────────┐ │ │ │
│ │ │ │ images.json │
│ │ │ │ │
│ release-worker.yml ┼────┘ │ │
│ │ └─────────────────────────┘
│ │
└─────────────────────────┘
```

Part of the release and CI process involves creating and pushing images to a registry (such as DockerHub) for the Dataflow server, Skipper server, CTR app, and other components.
This process is managed by the `build-images` (build-images.yml) workflow. While the `build-images` workflow is typically not run independently, it is invoked by other workflows that handle CI builds and releases.
The `build-images` workflow determines which images to create based on the `images.json` file.
This file contains metadata on the primary SCDF components that need to have an associated image.
Each entry specifies the location (directory) where the jar can be found, jar name, and image name for each artifact that will be used to construct the image.
For each entry in the `images.json` file, the workflow calls the `build-image.sh` script, which retrieves the jar, builds the image, and then pushes it to the registry.

SCDF also provides images for external applications that support some of the optional features that are offered by dataflow.
These include Grafana and Prometheus local.
These images are created and pushed using the docker/build-push-action@v2 action.

=== Scripts used to build images
As mentioned above, the `build-image.sh` script is responsible for building the specified image based on the parameters provided and then pushing the image to Dockerhub.
This script uses Paketo to build an image for each of the supported Java versions using the corresponding jar file.
The resulting image name will look something like `spring-cloud-dataflow-server:3.0.0-SNAPSHOT-jdk17`.
Additionally, the script creates a default image using the default Java version as specified by the `DEFAULT_JDK` environment variable.

The format for running the `build-image.sh` is as follows:
[source, bash]
```
bash
./build-image.sh <directory containing the jar> <The name of the image to create> <name of the jar>
```

There is an optional `DEFAULT_JDK` environment variable that allows you to set the JDK version for the default image created.
If not the script will set it to its current setting (which as of the writing of this document is `17`).

NOTE: When new releases of Java are available and are compliant with the SCDF release, they need to be added to the `build-image.sh` script.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ logs/
scdf-logs/
.attach_pid*
.jfrog/
.gradle

# Eclipse artifacts, including WTP generated manifests
.classpath
Expand Down
Empty file removed .jdk8
Empty file.
2 changes: 1 addition & 1 deletion .springjavaformatconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java-baseline=8
java-baseline=17
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
"request": "attach",
"hostName": "localhost",
"port": 5005
},
{
"type": "java",
"name": "SKIPPER default",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"mainClass": "org.springframework.cloud.skipper.server.app.SkipperServerApplication",
"projectName": "spring-cloud-skipper-server",
"args": ""
}
]
}
Loading
Loading