mirror of
https://github.com/mindthemath/fenics.git
synced 2025-05-15 04:57:36 -06:00
docker build
This commit is contained in:
parent
d0302cea1b
commit
0d48350473
16
Makefile
16
Makefile
@ -12,13 +12,17 @@ latest:
|
|||||||
SHELL=bash
|
SHELL=bash
|
||||||
# docker buildx build --platform linux/amd64,linux/arm64
|
# docker buildx build --platform linux/amd64,linux/arm64
|
||||||
buster:
|
buster:
|
||||||
for TAG in $(shell echo 3.6.{9..13}-buster 3.{7..8}.{4..10}-buster {3.6.{14..15},3.{7..8}.{11..12},3.9.{6..9},3.10.{0..1}}-buster | sort); do \
|
# for TAG in $(shell echo 3.6.{9..13}-buster 3.{7..8}.{4..10}-buster {3.6.{14..15},3.{7..8}.{11..12},3.9.{6..9},3.10.{0..1}}-buster | sort); do
|
||||||
echo BUILDING $$TAG && \
|
for TAG in $(shell echo 3.{7..8}.{4..10}-buster {3.6.{14..15},3.{7..8}.{11..12},3.9.{6..9},3.10.{0..1}}-buster | sort); do \
|
||||||
|
VER=2019.1.0;\
|
||||||
|
echo BUILDING $$VER-$$TAG; \
|
||||||
|
docker pull mindthemath/fenics-arm64:$$VER-$$TAG; \
|
||||||
docker build \
|
docker build \
|
||||||
-t mindthemath/fenics-arm64:2019.1.0-$$TAG \
|
-t mindthemath/fenics-arm64:$$VER-$$TAG \
|
||||||
--build-arg PYTHON_TAG=$$TAG \
|
--build-arg PYTHON_TAG=$$TAG \
|
||||||
-f Dockerfile-2019.1.0 . && \
|
-f Dockerfile-$$VER . && \
|
||||||
docker push mindthemath/fenics-arm64:2019.1.0-$$TAG && \
|
docker push mindthemath/fenics-arm64:$$VER-$$TAG && \
|
||||||
docker rmi mindthemath/fenics-arm64:2019.1.0-$$TAG || exit; \
|
docker rmi mindthemath/fenics-arm64:$$VER-$$TAG || exit; \
|
||||||
|
yes | docker system prune; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user