You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2020/01/23 17:15:43 UTC

[incubator-streampipes] 01/08: add multiarch build for backend, connect master, ui

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit 31eca579bb6b366cb8f63d4f20e625a3157b5b2d
Author: Patrick Wiener <wi...@fzi.de>
AuthorDate: Tue Dec 10 16:31:01 2019 +0100

    add multiarch build for backend, connect master, ui
---
 .gitlab-ci.yml                                     | 245 +++++++++++++++++++--
 streampipes-backend/Dockerfile                     |   3 +-
 streampipes-backend/{Dockerfile => Dockerfile.arm} |  20 +-
 streampipes-connect-container-master/Dockerfile    |   3 +-
 .../{Dockerfile => Dockerfile.arm}                 |   4 +-
 ui/Dockerfile                                      |   3 +-
 ui/{Dockerfile => Dockerfile.arm}                  |   4 +-
 7 files changed, 249 insertions(+), 33 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 99afc9d..b8f9cbe 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,13 @@ variables:
   HARBOR_IMAGE_NAME: $HARBOR_REGISTRY_HOST/$CI_PROJECT_PATH
   MAVEN_CLI_OPTS: -DskipTests --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true
   GIT_STRATEGY: clone
+  DOCKER_CLI_EXPERIMENTAL: enabled
+  BASE_IMAGE_AMD: adoptopenjdk/openjdk8-openj9:alpine-slim
+  BASE_IMAGE_ARM32v7: arm32v7/openjdk:11-jre-slim
+  BASE_IMAGE_ARM64v8: arm64v8/openjdk:11-jre-slim
+  BASE_NGINX_AMD64: nginx
+  BASE_NGINX_ARM32v7: nginx@sha256:6e2a671de086d2e6849b2a9507af213b7e3dd4101f24e13eff5687036a04afb2
+  BASE_NGINX_ARM64v8: nginx@sha256:cedc7a962e459faa796cddbb535a9e3ba95e279e368b2ff59d08ced99e9d9d6b
 
 stages:
   - build
@@ -97,7 +104,7 @@ github:
     - master
 
 docker-ui:
-  image: docker:17.06.0-ce
+  image: docker:19.03.5
   stage: docker
   dependencies:
     - build
@@ -111,44 +118,243 @@ docker-ui:
     #    - unzip javadoc.zip
     #    - mkdir javadoc && mv target/site/apidocs/* ./javadoc
     - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $REGISTRY_HOST
-    - docker login -u zehnder -p $HARBOR_PASSWORD $HARBOR_REGISTRY_HOST
-    - docker build --no-cache --pull -t $HARBOR_IMAGE_NAME/ui:$MVN_VERSION -t $IMAGE_NAME/ui:$MVN_VERSION ./ui
-    - docker push $IMAGE_NAME/ui:$MVN_VERSION
-    - docker push $HARBOR_IMAGE_NAME/ui:$MVN_VERSION
+    # Build AMD64
+    - docker build --pull --build-arg BASE_IMAGE=$BASE_NGINX_AMD64
+      -t $IMAGE_NAME/ui:amd64 -t $IMAGE_NAME/ui:amd64-$MVN_VERSION
+      -f ./ui/Dockerfile ./ui
+    # Build ARMv7
+    # Download qemu static and make it executable so it can be used during the docker build phase
+    - wget https://github.com/multiarch/qemu-user-static/releases/download/v4.0.0/qemu-arm-static -P ./ui
+    - chmod 554 ./ui/qemu-arm-static
+    - docker build --pull --build-arg BASE_IMAGE=$BASE_NGINX_ARM32v7
+      -t $IMAGE_NAME/ui:arm32v7 -t $IMAGE_NAME/ui:arm32v7-$MVN_VERSION
+      -f ./ui/Dockerfile.arm ./ui
+    - docker build --pull --build-arg BASE_IMAGE=$BASE_NGINX_ARM64v8
+      -t $IMAGE_NAME/ui:arm64v8 -t $IMAGE_NAME/ui:arm64v8-$MVN_VERSION
+      -f ./ui/Dockerfile.arm ./ui
+    # Push Docker images: AMD64, ARMv7, ARMv8
+    - docker push $IMAGE_NAME/ui:amd64-$MVN_VERSION
+    - docker push $IMAGE_NAME/ui:amd64
+    - docker push $IMAGE_NAME/ui:arm32v7-$MVN_VERSION
+    - docker push $IMAGE_NAME/ui:arm32v7
+    - docker push $IMAGE_NAME/ui:arm64v8-$MVN_VERSION
+    - docker push $IMAGE_NAME/ui:arm64v8
+    # Create Docker manifest
+    - docker manifest create $IMAGE_NAME/ui:$MVN_VERSION
+      $IMAGE_NAME/ui:amd64-$MVN_VERSION
+      $IMAGE_NAME/ui:arm32v7-$MVN_VERSION
+      $IMAGE_NAME/ui:arm64v8-$MVN_VERSION
+    - docker manifest annotate $IMAGE_NAME/ui:$MVN_VERSION $IMAGE_NAME/ui:arm32v7-$MVN_VERSION --os linux --arch arm
+    - docker manifest annotate $IMAGE_NAME/ui:$MVN_VERSION $IMAGE_NAME/ui:arm64v8-$MVN_VERSION --os linux --arch arm64
+    - docker manifest push $IMAGE_NAME/ui:$MVN_VERSION
+#    - docker login -u zehnder -p $HARBOR_PASSWORD ipe-harbor.fzi.de
+#    # Build AMD64
+#    - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_AMD
+#      -t $IMAGE_NAME/backend:amd64 -t $IMAGE_NAME/backend:amd64-$MVN_VERSION
+#      -t $HARBOR_IMAGE_NAME/backend:amd64 -t $HARBOR_IMAGE_NAME/backend:amd64-$MVN_VERSION
+#      -f ./streampipes-backend/Dockerfile ./streampipes-backend
+#    # Build ARMv7
+#    # Download qemu static and make it executable so it can be used during the docker build phase
+#    - wget https://github.com/multiarch/qemu-user-static/releases/download/v4.0.0/qemu-arm-static -P ./streampipes-backend
+#    - chmod 554 ./streampipes-backend/qemu-arm-static
+#    - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_ARM32v7
+#      -t $IMAGE_NAME/backend:arm32v7 -t $IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+#      -t $HARBOR_IMAGE_NAME/backend:arm32v7 -t $HARBOR_IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+#      -f ./streampipes-backend/Dockerfile.arm ./streampipes-backend
+#    - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_ARM64v8
+#      -t $IMAGE_NAME/backend:arm64v8 -t $IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+#      -t $HARBOR_IMAGE_NAME/backend:arm64v8 -t $HARBOR_IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+#      -f ./streampipes-backend/Dockerfile.arm ./streampipes-backend
+#    # Push Docker images
+#    # Push AMD64
+#    - docker push $IMAGE_NAME/backend:amd64-$MVN_VERSION
+#    - docker push $IMAGE_NAME/backend:amd64
+#    - docker push $HARBOR_IMAGE_NAME/backend:amd64-$MVN_VERSION
+#    - docker push $HARBOR_IMAGE_NAME/backend:amd64
+#    # Push ARMv7
+#    - docker push $IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+#    - docker push $IMAGE_NAME/backend:arm32v7
+#    - docker push $HARBOR_IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+#    - docker push $HARBOR_IMAGE_NAME/backend:arm32v7
+#    # Push ARMv8
+#    - docker push $IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+#    - docker push $IMAGE_NAME/backend:arm64v8
+#    - docker push $HARBOR_IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+#    - docker push $HARBOR_IMAGE_NAME/backend:arm64v8
+#    # Create Docker manifest
+#    - docker manifest create $IMAGE_NAME/backend:$MVN_VERSION
+#      $IMAGE_NAME/backend:amd64-$MVN_VERSION
+#      $IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+#      $IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+#    - docker manifest annotate $IMAGE_NAME/backend:$MVN_VERSION $IMAGE_NAME/backend:arm32v7-$MVN_VERSION --os linux --arch arm
+#    - docker manifest annotate $IMAGE_NAME/backend:$MVN_VERSION $IMAGE_NAME/backend:arm64v8-$MVN_VERSION --os linux --arch arm64
+#    - docker manifest push $IMAGE_NAME/backend:$MVN_VERSION
 
 docker-backend:
-   image: docker:17.06.0-ce
+   image: docker:19.03.5
    stage: docker
    dependencies: 
      - build
    script: 
      - export MVN_VERSION=$(cat ./target/mvn_version)
      - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $REGISTRY_HOST
-     - docker login -u zehnder -p $HARBOR_PASSWORD ipe-harbor.fzi.de
-     - docker build --pull -t $IMAGE_NAME/backend:latest -t $IMAGE_NAME/backend:$MVN_VERSION -t $HARBOR_IMAGE_NAME/backend:latest -t $HARBOR_IMAGE_NAME/backend:$MVN_VERSION ./streampipes-backend/
-     - docker push $IMAGE_NAME/backend:$MVN_VERSION
-     - docker push $IMAGE_NAME/backend:latest
-     - docker push $HARBOR_IMAGE_NAME/backend:$MVN_VERSION
-     - docker push $HARBOR_IMAGE_NAME/backend:latest
+     # Build AMD64
+     - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_AMD
+       -t $IMAGE_NAME/backend:amd64 -t $IMAGE_NAME/backend:amd64-$MVN_VERSION
+       -f ./streampipes-backend/Dockerfile ./streampipes-backend
+     # Build ARMv7
+     # Download qemu static and make it executable so it can be used during the docker build phase
+     - wget https://github.com/multiarch/qemu-user-static/releases/download/v4.0.0/qemu-arm-static -P ./streampipes-backend
+     - chmod 554 ./streampipes-backend/qemu-arm-static
+     - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_ARM32v7
+       -t $IMAGE_NAME/backend:arm32v7 -t $IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+       -f ./streampipes-backend/Dockerfile.arm ./streampipes-backend
+     - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_ARM64v8
+       -t $IMAGE_NAME/backend:arm64v8 -t $IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+       -f ./streampipes-backend/Dockerfile.arm ./streampipes-backend
+     # Push Docker images: AMD64, ARMv7, ARMv8
+     - docker push $IMAGE_NAME/backend:amd64-$MVN_VERSION
+     - docker push $IMAGE_NAME/backend:amd64
+     - docker push $IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+     - docker push $IMAGE_NAME/backend:arm32v7
+     - docker push $IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+     - docker push $IMAGE_NAME/backend:arm64v8
+     # Create Docker manifest
+     - docker manifest create $IMAGE_NAME/backend:$MVN_VERSION
+       $IMAGE_NAME/backend:amd64-$MVN_VERSION
+       $IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+       $IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+     - docker manifest annotate $IMAGE_NAME/backend:$MVN_VERSION $IMAGE_NAME/backend:arm32v7-$MVN_VERSION --os linux --arch arm
+     - docker manifest annotate $IMAGE_NAME/backend:$MVN_VERSION $IMAGE_NAME/backend:arm64v8-$MVN_VERSION --os linux --arch arm64
+     - docker manifest push $IMAGE_NAME/backend:$MVN_VERSION
+  #    - docker login -u zehnder -p $HARBOR_PASSWORD ipe-harbor.fzi.de
+  #    # Build AMD64
+  #    - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_AMD
+  #      -t $IMAGE_NAME/backend:amd64 -t $IMAGE_NAME/backend:amd64-$MVN_VERSION
+  #      -t $HARBOR_IMAGE_NAME/backend:amd64 -t $HARBOR_IMAGE_NAME/backend:amd64-$MVN_VERSION
+  #      -f ./streampipes-backend/Dockerfile ./streampipes-backend
+  #    # Build ARMv7
+  #    # Download qemu static and make it executable so it can be used during the docker build phase
+  #    - wget https://github.com/multiarch/qemu-user-static/releases/download/v4.0.0/qemu-arm-static -P ./streampipes-backend
+  #    - chmod 554 ./streampipes-backend/qemu-arm-static
+  #    - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_ARM32v7
+  #      -t $IMAGE_NAME/backend:arm32v7 -t $IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+  #      -t $HARBOR_IMAGE_NAME/backend:arm32v7 -t $HARBOR_IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+  #      -f ./streampipes-backend/Dockerfile.arm ./streampipes-backend
+  #    - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_ARM64v8
+  #      -t $IMAGE_NAME/backend:arm64v8 -t $IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+  #      -t $HARBOR_IMAGE_NAME/backend:arm64v8 -t $HARBOR_IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+  #      -f ./streampipes-backend/Dockerfile.arm ./streampipes-backend
+  #    # Push Docker images
+  #    # Push AMD64
+  #    - docker push $IMAGE_NAME/backend:amd64-$MVN_VERSION
+  #    - docker push $IMAGE_NAME/backend:amd64
+  #    - docker push $HARBOR_IMAGE_NAME/backend:amd64-$MVN_VERSION
+  #    - docker push $HARBOR_IMAGE_NAME/backend:amd64
+  #    # Push ARMv7
+  #    - docker push $IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+  #    - docker push $IMAGE_NAME/backend:arm32v7
+  #    - docker push $HARBOR_IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+  #    - docker push $HARBOR_IMAGE_NAME/backend:arm32v7
+  #    # Push ARMv8
+  #    - docker push $IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+  #    - docker push $IMAGE_NAME/backend:arm64v8
+  #    - docker push $HARBOR_IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+  #    - docker push $HARBOR_IMAGE_NAME/backend:arm64v8
+  #    # Create Docker manifest
+  #    - docker manifest create $IMAGE_NAME/backend:$MVN_VERSION
+  #      $IMAGE_NAME/backend:amd64-$MVN_VERSION
+  #      $IMAGE_NAME/backend:arm32v7-$MVN_VERSION
+  #      $IMAGE_NAME/backend:arm64v8-$MVN_VERSION
+  #    - docker manifest annotate $IMAGE_NAME/backend:$MVN_VERSION $IMAGE_NAME/backend:arm32v7-$MVN_VERSION --os linux --arch arm
+  #    - docker manifest annotate $IMAGE_NAME/backend:$MVN_VERSION $IMAGE_NAME/backend:arm64v8-$MVN_VERSION --os linux --arch arm64
+  #    - docker manifest push $IMAGE_NAME/backend:$MVN_VERSION
    only:
      - dev
+     - multiarch
 
 docker-connect-container:
-   image: docker:17.06.0-ce
+   image: docker:19.03.5
    stage: docker
    dependencies:
      - build
    script:
      - export MVN_VERSION=$(cat ./target/mvn_version)
      - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $REGISTRY_HOST
-     - docker login -u zehnder -p $HARBOR_PASSWORD ipe-harbor.fzi.de
-     - docker build --pull -t $IMAGE_NAME/streampipes-connect-container:latest -t $IMAGE_NAME/streampipes-connect-container:$MVN_VERSION -t $HARBOR_IMAGE_NAME/streampipes-connect-container:latest -t $HARBOR_IMAGE_NAME/streampipes-connect-container:$MVN_VERSION ./streampipes-connect-container-master/
-     - docker push $IMAGE_NAME/streampipes-connect-container:$MVN_VERSION
-     - docker push $IMAGE_NAME/streampipes-connect-container:latest
-     - docker push $HARBOR_IMAGE_NAME/streampipes-connect-container:$MVN_VERSION
-     - docker push $HARBOR_IMAGE_NAME/streampipes-connect-container:latest
+     # Build AMD64
+     - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_AMD
+       -t $IMAGE_NAME/streampipes-connect-container:amd64 -t $IMAGE_NAME/streampipes-connect-container:amd64-$MVN_VERSION
+       -f ./streampipes-connect-container-master/Dockerfile ./streampipes-connect-container-master
+     # Build ARMv7
+     # Download qemu static and make it executable so it can be used during the docker build phase
+     - wget https://github.com/multiarch/qemu-user-static/releases/download/v4.0.0/qemu-arm-static -P ./streampipes-connect-container-master
+     - chmod 554 ./streampipes-connect-container-master/qemu-arm-static
+     - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_ARM32v7
+       -t $IMAGE_NAME/streampipes-connect-container:arm32v7 -t $IMAGE_NAME/streampipes-connect-container:arm32v7-$MVN_VERSION
+       -f ./streampipes-connect-container-master/Dockerfile.arm ./streampipes-connect-container-master
+     - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_ARM64v8
+       -t $IMAGE_NAME/streampipes-connect-container:arm64v8 -t $IMAGE_NAME/streampipes-connect-container:arm64v8-$MVN_VERSION
+       -f ./streampipes-connect-container-master/Dockerfile.arm ./streampipes-connect-container-master
+     # Push Docker images: AMD64, ARMv7, ARMv8
+     - docker push $IMAGE_NAME/streampipes-connect-container:amd64-$MVN_VERSION
+     - docker push $IMAGE_NAME/streampipes-connect-container:amd64
+     - docker push $IMAGE_NAME/streampipes-connect-container:arm32v7-$MVN_VERSION
+     - docker push $IMAGE_NAME/streampipes-connect-container:arm32v7
+     - docker push $IMAGE_NAME/streampipes-connect-container:arm64v8-$MVN_VERSION
+     - docker push $IMAGE_NAME/streampipes-connect-container:arm64v8
+     # Create Docker manifest
+     - docker manifest create $IMAGE_NAME/streampipes-connect-container:$MVN_VERSION
+       $IMAGE_NAME/streampipes-connect-container:amd64-$MVN_VERSION
+       $IMAGE_NAME/streampipes-connect-container:arm32v7-$MVN_VERSION
+       $IMAGE_NAME/streampipes-connect-container:arm64v8-$MVN_VERSION
+     - docker manifest annotate $IMAGE_NAME/streampipes-connect-container:$MVN_VERSION $IMAGE_NAME/streampipes-connect-container:arm32v7-$MVN_VERSION --os linux --arch arm
+     - docker manifest annotate $IMAGE_NAME/streampipes-connect-container:$MVN_VERSION $IMAGE_NAME/streampipes-connect-container:arm64v8-$MVN_VERSION --os linux --arch arm64
+     - docker manifest push $IMAGE_NAME/streampipes-connect-container:$MVN_VERSION
+  #    - docker login -u zehnder -p $HARBOR_PASSWORD ipe-harbor.fzi.de
+  #    # Build AMD64
+  #    - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_AMD
+  #      -t $IMAGE_NAME/streampipes-connect-container:amd64 -t $IMAGE_NAME/streampipes-connect-container:amd64-$MVN_VERSION
+  #      -t $HARBOR_IMAGE_NAME/streampipes-connect-container:amd64 -t $HARBOR_IMAGE_NAME/streampipes-connect-container:amd64-$MVN_VERSION
+  #      -f ./streampipes-connect-container-master/Dockerfile ./streampipes-connect-container-master
+  #    # Build ARMv7
+  #    # Download qemu static and make it executable so it can be used during the docker build phase
+  #    - wget https://github.com/multiarch/qemu-user-static/releases/download/v4.0.0/qemu-arm-static -P ./streampipes-connect-container-master
+  #    - chmod 554 ./streampipes-connect-container-master/qemu-arm-static
+  #    - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_ARM32v7
+  #      -t $IMAGE_NAME/streampipes-connect-container:arm32v7 -t $IMAGE_NAME/streampipes-connect-container:arm32v7-$MVN_VERSION
+  #      -t $HARBOR_IMAGE_NAME/streampipes-connect-container:arm32v7 -t $HARBOR_IMAGE_NAME/streampipes-connect-container:arm32v7-$MVN_VERSION
+  #      -f ./streampipes-connect-container-master/Dockerfile.arm ./streampipes-connect-container-master
+  #    - docker build --pull --build-arg BASE_IMAGE=$BASE_IMAGE_ARM64v8
+  #      -t $IMAGE_NAME/streampipes-connect-container:arm64v8 -t $IMAGE_NAME/streampipes-connect-container:arm64v8-$MVN_VERSION
+  #      -t $HARBOR_IMAGE_NAME/streampipes-connect-container:arm64v8 -t $HARBOR_IMAGE_NAME/streampipes-connect-container:arm64v8-$MVN_VERSION
+  #      -f ./streampipes-connect-container-master/Dockerfile.arm ./streampipes-connect-container-master
+  #    # Push Docker images
+  #    # Push AMD64
+  #    - docker push $IMAGE_NAME/streampipes-connect-container:amd64-$MVN_VERSION
+  #    - docker push $IMAGE_NAME/streampipes-connect-container:amd64
+  #    - docker push $HARBOR_IMAGE_NAME/streampipes-connect-container:amd64-$MVN_VERSION
+  #    - docker push $HARBOR_IMAGE_NAME/streampipes-connect-container:amd64
+  #    # Push ARMv7
+  #    - docker push $IMAGE_NAME/streampipes-connect-container:arm32v7-$MVN_VERSION
+  #    - docker push $IMAGE_NAME/streampipes-connect-container:arm32v7
+  #    - docker push $HARBOR_IMAGE_NAME/streampipes-connect-container:arm32v7-$MVN_VERSION
+  #    - docker push $HARBOR_IMAGE_NAME/streampipes-connect-container:arm32v7
+  #    # Push ARMv8
+  #    - docker push $IMAGE_NAME/streampipes-connect-container:arm64v8-$MVN_VERSION
+  #    - docker push $IMAGE_NAME/streampipes-connect-container:arm64v8
+  #    - docker push $HARBOR_IMAGE_NAME/streampipes-connect-container:arm64v8-$MVN_VERSION
+  #    - docker push $HARBOR_IMAGE_NAME/streampipes-connect-container:arm64v8
+  #    # Create Docker manifest
+  #    - docker manifest create $IMAGE_NAME/streampipes-connect-container:$MVN_VERSION
+  #      $IMAGE_NAME/streampipes-connect-container:amd64-$MVN_VERSION
+  #      $IMAGE_NAME/streampipes-connect-container:arm32v7-$MVN_VERSION
+  #      $IMAGE_NAME/streampipes-connect-container:arm64v8-$MVN_VERSION
+  #    - docker manifest annotate $IMAGE_NAME/streampipes-connect-container:$MVN_VERSION $IMAGE_NAME/streampipes-connect-container:arm32v7-$MVN_VERSION --os linux --arch arm
+  #    - docker manifest annotate $IMAGE_NAME/streampipes-connect-container:$MVN_VERSION $IMAGE_NAME/streampipes-connect-container:arm64v8-$MVN_VERSION --os linux --arch arm64
+  #    - docker manifest push $IMAGE_NAME/streampipes-connect-container:$MVN_VERSION
    only:
      - dev
+     - multiarch
 
 deploy:
   image: maven:3-jdk-8
@@ -237,7 +443,6 @@ finish release:
 docker hub:
   image: docker:17.06.0-ce
   stage: docker-hub
-  when: manual
   script:
     - export MVN_VERSION=$(cat ./target/mvn_version)
     - docker login -u streampipesbuild -p $DOCKER_HUB_USER_PWD
diff --git a/streampipes-backend/Dockerfile b/streampipes-backend/Dockerfile
index d86d4b5..2dc6c19 100644
--- a/streampipes-backend/Dockerfile
+++ b/streampipes-backend/Dockerfile
@@ -13,7 +13,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM adoptopenjdk/openjdk8-openj9:alpine-slim
+ARG BASE_IMAGE=adoptopenjdk/openjdk8-openj9:alpine-slim
+FROM $BASE_IMAGE
 
 EXPOSE 8030
 ENV CONSUL_LOCATION consul
diff --git a/streampipes-backend/Dockerfile b/streampipes-backend/Dockerfile.arm
similarity index 53%
copy from streampipes-backend/Dockerfile
copy to streampipes-backend/Dockerfile.arm
index d86d4b5..4d1c68d 100644
--- a/streampipes-backend/Dockerfile
+++ b/streampipes-backend/Dockerfile.arm
@@ -1,9 +1,9 @@
-# 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
+#
+# Copyright 2018 FZI Forschungszentrum Informatik
+#
+# Licensed 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
 #
@@ -12,12 +12,16 @@
 # 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.
+#
 
-FROM adoptopenjdk/openjdk8-openj9:alpine-slim
+ARG BASE_IMAGE=arm64v8/adoptopenjdk:11-jre-openj9
+FROM $BASE_IMAGE
 
-EXPOSE 8030
 ENV CONSUL_LOCATION consul
 
+EXPOSE 8030
+
+COPY qemu-arm-static /usr/bin
 ADD ./target/streampipes-backend.jar  /streampipes-backend.jar
 
 ENTRYPOINT ["java", "-jar", "/streampipes-backend.jar"]
diff --git a/streampipes-connect-container-master/Dockerfile b/streampipes-connect-container-master/Dockerfile
index 9e3b52d..bc6d4d7 100644
--- a/streampipes-connect-container-master/Dockerfile
+++ b/streampipes-connect-container-master/Dockerfile
@@ -13,7 +13,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM adoptopenjdk/openjdk8-openj9:alpine-slim
+ARG BASE_IMAGE=adoptopenjdk/openjdk8-openj9:alpine-slim
+FROM $BASE_IMAGE
 
 ENV CONSUL_LOCATION consul
 
diff --git a/streampipes-connect-container-master/Dockerfile b/streampipes-connect-container-master/Dockerfile.arm
similarity index 91%
copy from streampipes-connect-container-master/Dockerfile
copy to streampipes-connect-container-master/Dockerfile.arm
index 9e3b52d..8bdf782 100644
--- a/streampipes-connect-container-master/Dockerfile
+++ b/streampipes-connect-container-master/Dockerfile.arm
@@ -13,12 +13,14 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM adoptopenjdk/openjdk8-openj9:alpine-slim
+ARG BASE_IMAGE=arm64v8/adoptopenjdk:11-jre-openj9
+FROM $BASE_IMAGE
 
 ENV CONSUL_LOCATION consul
 
 EXPOSE 8099
 
+COPY qemu-arm-static /usr/bin
 COPY target/streampipes-connect-container-master.jar  /streampipes-connect-container-master.jar
 
 ENTRYPOINT ["java", "-jar", "/streampipes-connect-container-master.jar"]
diff --git a/ui/Dockerfile b/ui/Dockerfile
index 3205260..13bd1a4 100644
--- a/ui/Dockerfile
+++ b/ui/Dockerfile
@@ -13,7 +13,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM nginx
+ARG BASE_IMAGE=nginx
+FROM $BASE_IMAGE
 
 COPY dist/assets/img/ /usr/share/nginx/html/assets/img/
 COPY dist/assets/css/ /usr/share/nginx/html/assets/css/
diff --git a/ui/Dockerfile b/ui/Dockerfile.arm
similarity index 94%
copy from ui/Dockerfile
copy to ui/Dockerfile.arm
index 3205260..cb77c1a 100644
--- a/ui/Dockerfile
+++ b/ui/Dockerfile.arm
@@ -13,7 +13,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM nginx
+ARG BASE_IMAGE=nginx
+FROM $BASE_IMAGE
 
 COPY dist/assets/img/ /usr/share/nginx/html/assets/img/
 COPY dist/assets/css/ /usr/share/nginx/html/assets/css/
@@ -41,5 +42,6 @@ COPY docker-entrypoint.sh /
 
 RUN chown -R nginx:nginx /usr/share/nginx/html/
 
+COPY qemu-arm-static /usr/bin
 ENTRYPOINT ["/docker-entrypoint.sh"]
 CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file