]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add ci script for arm docker build 17881/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 22 Nov 2024 13:20:47 +0000 (08:20 -0500)
committerTimo Heister <timo.heister@gmail.com>
Mon, 25 Nov 2024 20:47:29 +0000 (15:47 -0500)
contrib/ci/make-docker-arm-build.sh [new file with mode: 0644]

diff --git a/contrib/ci/make-docker-arm-build.sh b/contrib/ci/make-docker-arm-build.sh
new file mode 100644 (file)
index 0000000..c93a961
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+docker system prune -f
+
+# build arm image:
+docker buildx build --no-cache --platform linux/arm64 --output type=registry \
+  -t dealii/dealii:master-jammy-arm \
+                --build-arg IMG=jammy \
+                --build-arg VER=master \
+                --build-arg NJOBS=4 \
+                github
+
+# combine images:
+docker pull dealii/dealii:master-jammy --platform amd64
+docker tag dealii/dealii:master-jammy dealii/dealii:master-jammy-amd64
+docker push dealii/dealii:master-jammy-amd64
+docker buildx imagetools create -t dealii/dealii:master-jammy \
+       dealii/dealii:master-jammy-arm \
+       dealii/dealii:master-jammy-amd64
+
+# cleanup:
+docker system prune -f

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.