Skip to content
Snippets Groups Projects

arm64/qemu build

Merged Sylvester Joosten requested to merge arm64-qemu into master
Compare and
1 file
+ 17
1
Compare changes
  • Side-by-side
  • Inline
+ 17
1
@@ -165,7 +165,7 @@ version:
@@ -165,7 +165,7 @@ version:
.build:
.build:
rules:
rules:
- when: on_success
- when: on_success
resource_group: build
resource_group: build_test
## Use docker runner for docker builds
## Use docker runner for docker builds
tags:
tags:
- docker-new
- docker-new
@@ -196,17 +196,25 @@ base:
@@ -196,17 +196,25 @@ base:
BUILD_IMAGE: debian_testing_base
BUILD_IMAGE: debian_testing_base
- BASE_IMAGE: amd64/debian:stable-20220527-slim
- BASE_IMAGE: amd64/debian:stable-20220527-slim
BUILD_IMAGE: debian_stable_base_new
BUILD_IMAGE: debian_stable_base_new
 
when: manual
- BASE_IMAGE: ubuntu:20.04
- BASE_IMAGE: ubuntu:20.04
BUILD_IMAGE: ubuntu_base
BUILD_IMAGE: ubuntu_base
 
when: manual
- BASE_IMAGE: intel/oneapi-hpckit:2022.3.0-devel-ubuntu20.04
- BASE_IMAGE: intel/oneapi-hpckit:2022.3.0-devel-ubuntu20.04
BUILD_IMAGE: oneapi_base
BUILD_IMAGE: oneapi_base
 
when: manual
- BASE_IMAGE: nvidia/cuda:11.8.0-devel-ubuntu20.04
- BASE_IMAGE: nvidia/cuda:11.8.0-devel-ubuntu20.04
BUILD_IMAGE: cuda_base
BUILD_IMAGE: cuda_base
 
when: manual
 
- BASE_IMAGE: arm64v8/debian:testing-20220822-slim
 
BUILD_IMAGE: arm64v8_testing_base
extends: .build
extends: .build
stage: base
stage: base
needs:
needs:
- version
- version
script:
script:
 
- apt-get update -y && apt-get install -y qemu binfmt-support qemu-user-static
 
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker build -t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${INTERNAL_TAG}
- docker build -t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${INTERNAL_TAG}
-f containers/debian/base.Dockerfile
-f containers/debian/base.Dockerfile
--build-arg BASE_IMAGE=${BASE_IMAGE}
--build-arg BASE_IMAGE=${BASE_IMAGE}
@@ -219,6 +227,10 @@ jug_dev:default:
@@ -219,6 +227,10 @@ jug_dev:default:
matrix:
matrix:
- BASE_IMAGE: debian_testing_base
- BASE_IMAGE: debian_testing_base
BUILD_IMAGE: jug_dev
BUILD_IMAGE: jug_dev
 
ARCH: x86_64_v3
 
- BASE_IMAGE: arm64v8_testing_base
 
BUILD_IMAGE: jug_dev_arm64v8
 
ARCH: aarch64
# - BASE_IMAGE: oneapi_base
# - BASE_IMAGE: oneapi_base
# BUILD_IMAGE: jug_dev_oneapi
# BUILD_IMAGE: jug_dev_oneapi
# - BASE_IMAGE: cuda_base_new
# - BASE_IMAGE: cuda_base_new
@@ -229,6 +241,8 @@ jug_dev:default:
@@ -229,6 +241,8 @@ jug_dev:default:
- version
- version
- base
- base
script:
script:
 
- apt-get update -y && apt-get install -y qemu binfmt-support qemu-user-static
 
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
## calculate a hash based on the spack.yaml file and the spack directory
## calculate a hash based on the spack.yaml file and the spack directory
## and use this spack as a docker variable to force a rebuild when there
## and use this spack as a docker variable to force a rebuild when there
## is a change (versus rerun from cache)
## is a change (versus rerun from cache)
@@ -247,6 +261,7 @@ jug_dev:default:
@@ -247,6 +261,7 @@ jug_dev:default:
-t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:builder-${INTERNAL_TAG}
-t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:builder-${INTERNAL_TAG}
--target=builder
--target=builder
-f containers/jug/dev.Dockerfile
-f containers/jug/dev.Dockerfile
 
--build-arg ARCH="${ARCH}"
--build-arg BASE_IMAGE="${BASE_IMAGE}"
--build-arg BASE_IMAGE="${BASE_IMAGE}"
--build-arg SPACK_ORGREPO="${SPACK_ORGREPO}"
--build-arg SPACK_ORGREPO="${SPACK_ORGREPO}"
--build-arg SPACK_VERSION="${SPACK_VERSION}"
--build-arg SPACK_VERSION="${SPACK_VERSION}"
@@ -263,6 +278,7 @@ jug_dev:default:
@@ -263,6 +278,7 @@ jug_dev:default:
## now build our image
## now build our image
- docker build -t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${INTERNAL_TAG} ${CACHE_FLAG}
- docker build -t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${INTERNAL_TAG} ${CACHE_FLAG}
-f containers/jug/dev.Dockerfile
-f containers/jug/dev.Dockerfile
 
--build-arg ARCH="${ARCH}"
--build-arg BASE_IMAGE="${BASE_IMAGE}"
--build-arg BASE_IMAGE="${BASE_IMAGE}"
--build-arg SPACK_ORGREPO="${SPACK_ORGREPO}"
--build-arg SPACK_ORGREPO="${SPACK_ORGREPO}"
--build-arg SPACK_VERSION="${SPACK_VERSION}"
--build-arg SPACK_VERSION="${SPACK_VERSION}"
Loading