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:48 UTC

[incubator-streampipes] 06/08: add qemu-aarch64-static

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 33d1f6eb179bbb01a710cb42bf4fb178ec6895ed
Author: Patrick Wiener <wi...@fzi.de>
AuthorDate: Wed Dec 11 15:11:04 2019 +0100

    add qemu-aarch64-static
    
    Signed-off-by: Patrick Wiener <wi...@fzi.de>
---
 .gitlab-ci.yml    | 6 ++++--
 ui/Dockerfile.arm | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 51469b7..9f384ea 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -127,11 +127,13 @@ docker-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
+    - wget https://github.com/multiarch/qemu-user-static/releases/download/v4.0.0/qemu-aarch64-static -P ./ui
     - chmod 554 ./ui/qemu-arm-static
-    - docker build --pull --build-arg BASE_IMAGE=$BASE_NGINX_ARM32v7
+    - chmod 554 ./ui/qemu-aarch64-static
+    - docker build --pull --build-arg BASE_IMAGE=$BASE_NGINX_ARM32v7 --build-arg QEMU=qemu-arm-static
       -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
+    - docker build --pull --build-arg BASE_IMAGE=$BASE_NGINX_ARM64v8 --build-arg QEMU=qemu-aarch64-static
       -t $IMAGE_NAME/ui:arm64v8 -t $IMAGE_NAME/ui:arm64v8-$MVN_VERSION
       -f ./ui/Dockerfile.arm ./ui
     # Push Docker images: AMD64, ARMv7, ARMv8
diff --git a/ui/Dockerfile.arm b/ui/Dockerfile.arm
index 93e22a1..9d06c2d 100644
--- a/ui/Dockerfile.arm
+++ b/ui/Dockerfile.arm
@@ -14,9 +14,10 @@
 # limitations under the License.
 
 ARG BASE_IMAGE=arm64v8/nginx
+ARG QEMU=qemu-aarch64-static
 FROM $BASE_IMAGE
 
-COPY qemu-arm-static /usr/bin
+COPY $QEMU /usr/bin
 
 COPY dist/assets/img/ /usr/share/nginx/html/assets/img/
 COPY dist/assets/css/ /usr/share/nginx/html/assets/css/