-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Build OSS branch for deploying to Cloud env (#11474)""
This reverts commit 55e3c1e.
- Loading branch information
Showing
24 changed files
with
171 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: "Build OSS Branch and Push Minimum Required OSS Images" | ||
description: "Build jars and docker images tagged for a particular branch. Primarily used for running OSS branch code in Cloud." | ||
inputs: | ||
branch_version_tag: | ||
description: 'Used to tag jars and docker images with a branch-specific version (should use the form "dev-<commit_hash>" to pass AirbyteVersion validation)' | ||
required: false | ||
dockerhub_token: | ||
description: "Used to log in to dockerhub for pushing images" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Parse Input" | ||
id: parse-input | ||
shell: bash | ||
run: |- | ||
# if the *branch_version_tag* input param is not specified, then generate it as 'dev-<commit_hash>` | ||
# | ||
[[ "${{ inputs.branch_version_tag }}" != '' ]] && echo "::set-output name=branch_version_tag::${{ inputs.branch_version_tag }}" \ | ||
|| { short_hash=$(git rev-parse --short HEAD); echo "::set-output name=branch_version_tag::dev-$short_hash"; } | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: "17" | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "16.13.0" | ||
|
||
- name: Set up CI Gradle Properties | ||
run: | | ||
mkdir -p ~/.gradle/ | ||
cat > ~/.gradle/gradle.properties <<EOF | ||
org.gradle.jvmargs=-Xmx8g -Xss4m --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \ | ||
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \ | ||
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \ | ||
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \ | ||
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED | ||
org.gradle.workers.max=8 | ||
org.gradle.vfs.watch=false | ||
EOF | ||
shell: bash | ||
|
||
- name: Build | ||
run: VERSION=${{ steps.parse-input.outputs.branch_version_tag }} SUB_BUILD=PLATFORM ./gradlew build --scan | ||
shell: bash | ||
|
||
- name: Publish to Maven Local | ||
run: VERSION=${{ steps.parse-input.outputs.branch_version_tag }} SUB_BUILD=PLATFORM ./gradlew publishToMavenLocal | ||
shell: bash | ||
|
||
- name: Login to Docker (on Master) | ||
uses: docker/login-action@v1 | ||
with: | ||
username: airbytebot | ||
password: ${{ inputs.dockerhub_token }} | ||
|
||
- name: Push Docker Images | ||
run: | | ||
GIT_REVISION=$(git rev-parse HEAD) | ||
[ [ -z "$GIT_REVISION" ] ] && echo "Couldn't get the git revision..." && exit 1 | ||
VERSION=${{ steps.parse-input.outputs.branch_version_tag }} GIT_REVISION=$GIT_REVISION docker-compose -f docker-compose-cloud.build.yaml push | ||
shell: bash |
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
ARG JDK_VERSION=17.0.1 | ||
FROM openjdk:${JDK_VERSION}-slim | ||
|
||
ARG VERSION=0.35.65-alpha | ||
|
||
ENV APPLICATION airbyte-bootloader | ||
ENV VERSION ${VERSION} | ||
|
||
WORKDIR /app | ||
|
||
ADD bin/${APPLICATION}-0.35.65-alpha.tar /app | ||
ADD bin/${APPLICATION}-${VERSION}.tar /app | ||
|
||
|
||
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.35.65-alpha/bin/${APPLICATION}"] | ||
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-${VERSION}/bin/${APPLICATION}"] |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Task dockerBuildTask = getDockerBuildTask("cli", "$project.projectDir") | ||
Task dockerBuildTask = getDockerBuildTask("cli", "$project.projectDir", "$rootProject.ext.version", "$rootProject.ext.image_tag") | ||
dockerBuildTask.dependsOn(copyDocker) | ||
assemble.dependsOn(dockerBuildTask) |
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
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
ARG JDK_VERSION=17.0.1 | ||
FROM openjdk:${JDK_VERSION}-slim AS metrics-reporter | ||
|
||
ARG VERSION=0.35.65-alpha | ||
|
||
ENV APPLICATION airbyte-metrics-reporter | ||
ENV VERSION ${VERSION} | ||
|
||
WORKDIR /app | ||
|
||
ADD bin/${APPLICATION}-0.35.65-alpha.tar /app | ||
ADD bin/${APPLICATION}-${VERSION}.tar /app | ||
|
||
|
||
# wait for upstream dependencies to become available before starting server | ||
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.35.65-alpha/bin/${APPLICATION}"] | ||
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-${VERSION}/bin/${APPLICATION}"] |
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
ARG JDK_VERSION=17.0.1 | ||
FROM openjdk:${JDK_VERSION}-slim AS scheduler | ||
|
||
ARG VERSION=0.35.65-alpha | ||
|
||
ENV APPLICATION airbyte-scheduler | ||
ENV VERSION ${VERSION} | ||
|
||
WORKDIR /app | ||
|
||
ADD bin/${APPLICATION}-0.35.65-alpha.tar /app | ||
ADD bin/${APPLICATION}-${VERSION}.tar /app | ||
|
||
# wait for upstream dependencies to become available before starting server | ||
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-0.35.65-alpha/bin/${APPLICATION}"] | ||
ENTRYPOINT ["/bin/bash", "-c", "${APPLICATION}-${VERSION}/bin/${APPLICATION}"] |
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
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
Oops, something went wrong.