You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by mb...@apache.org on 2022/03/30 10:07:12 UTC
[flink-kubernetes-operator] branch main updated (48aded1 -> ffcb00e)
This is an automated email from the ASF dual-hosted git repository.
mbalassi pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git.
from 48aded1 [FLINK-26916] Remove job graph from K8s HA ConfigMaps when submitting a Flink application cluster
new 396f593 [FLINK-26214] Only run Maven tests in Docker during CI
new ffcb00e [FLINK-26214] Add support for ARM64 docker image
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/ci.yml | 4 ++--
.../Chart.yaml => .github/workflows/docker-bake.hcl | 18 +++++++++++-------
.github/workflows/docker_push.yml | 14 +++++++++-----
Dockerfile | 3 ++-
4 files changed, 24 insertions(+), 15 deletions(-)
copy helm/flink-operator/Chart.yaml => .github/workflows/docker-bake.hcl (82%)
[flink-kubernetes-operator] 02/02: [FLINK-26214] Add support for ARM64 docker image
Posted by mb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mbalassi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
commit ffcb00e7309b67d7f5d62718573442bce8123f77
Author: Marton Balassi <ma...@apple.com>
AuthorDate: Mon Mar 28 15:54:25 2022 +0200
[FLINK-26214] Add support for ARM64 docker image
---
.github/workflows/docker-bake.hcl | 29 +++++++++++++++++++++++++++++
.github/workflows/docker_push.yml | 14 +++++++++-----
2 files changed, 38 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/docker-bake.hcl b/.github/workflows/docker-bake.hcl
new file mode 100644
index 0000000..82b2fee
--- /dev/null
+++ b/.github/workflows/docker-bake.hcl
@@ -0,0 +1,29 @@
+################################################################################
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+################################################################################
+
+target "docker-metadata-action" {}
+
+target "bake-platform" {
+ inherits = ["docker-metadata-action"]
+ context = "./"
+ dockerfile = "Dockerfile"
+ platforms = [
+ "linux/amd64",
+ "linux/arm64/v8",
+ ]
+}
diff --git a/.github/workflows/docker_push.yml b/.github/workflows/docker_push.yml
index 6f8d2d4..709d247 100644
--- a/.github/workflows/docker_push.yml
+++ b/.github/workflows/docker_push.yml
@@ -39,6 +39,9 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v2
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v1
+
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
@@ -58,10 +61,11 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- - name: Build and push Docker images
- uses: docker/build-push-action@v2
+ - name: Build and push Docker images (supported platforms)
+ uses: docker/bake-action@v1.7.0
with:
- context: .
+ files: |
+ .github/workflows/docker-bake.hcl
+ ${{ steps.meta.outputs.bake-file }}
+ targets: bake-platform
push: ${{ github.event_name != 'pull_request' }}
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}
[flink-kubernetes-operator] 01/02: [FLINK-26214] Only run Maven tests in Docker during CI
Posted by mb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
mbalassi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
commit 396f593885f485d6af5c3de7615ac35c17a22d08
Author: Marton Balassi <ma...@apple.com>
AuthorDate: Tue Mar 29 16:37:01 2022 +0200
[FLINK-26214] Only run Maven tests in Docker during CI
---
.github/workflows/ci.yml | 4 ++--
Dockerfile | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 800d956..cab3619 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -56,7 +56,7 @@ jobs:
export SHELL=/bin/bash
export DOCKER_BUILDKIT=1
eval $(minikube -p minikube docker-env)
- docker build --progress=plain --no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-latest .
+ docker build --progress=plain --build-arg SKIP_TESTS=false --no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-latest .
docker images
- name: Start the operator
run: |
@@ -101,7 +101,7 @@ jobs:
distribution: 'adopt'
- name: Build with Maven
run: |
- set -o pipefail; mvn clean install | tee ./mvn.log; set +o pipefail
+ set -o pipefail; mvn clean install -DskipTests | tee ./mvn.log; set +o pipefail
if [[ $(grep -c "overlapping classes" ./mvn.log) -gt 0 ]];then
echo "Found overlapping classes, please fix"
exit 1
diff --git a/Dockerfile b/Dockerfile
index adeaaf3..16a19b3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,6 +17,7 @@
################################################################################
# Build
FROM maven:3.8.4-openjdk-11 AS build
+ARG SKIP_TESTS=true
WORKDIR /app
ENV SHADED_DIR=flink-kubernetes-shaded
@@ -35,7 +36,7 @@ COPY $WEBHOOK_DIR/src ./$WEBHOOK_DIR/src
COPY tools ./tools
-RUN --mount=type=cache,target=/root/.m2 mvn -ntp clean install
+RUN --mount=type=cache,target=/root/.m2 mvn -ntp clean install -DskipTests=$SKIP_TESTS
# stage
FROM openjdk:11-jre