@@ -17,53 +17,62 @@ help:
1717 @grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
1818
1919HUB_USER =unixorn
20- MOOSEFS_VERSION =3.117
20+ MOOSEFS_VERSION =4.57
2121PLATFORMS =linux/arm64,linux/amd64,linux/arm/v7
2222
2323install_hooks : # # Install the git hooks
2424 poetry run pre-commit install
2525
26- local_cgiserver : # # Makes a moosefs-cgiserver docker image for only the architecture we're running on. Does not push to dockerhub.
27- docker buildx build --pull --load -t ${HUB_USER} /moosefs-cgiserver -f Dockerfile.cgiserver .
26+ local_base : # # Makes a moosefs-base docker image for only the architecture we're running on. Does not push to dockerhub.
27+ docker buildx build --pull --load -t ${HUB_USER} /moosefs-base -f Dockerfile.base .
28+
29+ multiarch_base : # # Makes a moosefs-base docker image. Does not push to dockerhub.
30+ docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-base:$(MOOSEFS_VERSION ) -f Dockerfile.base .
31+ docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-base:latest -f Dockerfile.base .
32+ docker pull ${HUB_USER} /moosefs-base:latest
33+
34+ local_cgiserver : local_base # # Makes a moosefs-cgiserver docker image for only the architecture we're running on. Does not push to dockerhub.
35+ docker buildx build --load -t ${HUB_USER} /moosefs-cgiserver -f Dockerfile.cgiserver .
36+ # docker buildx build --pull --load -t ${HUB_USER}/moosefs-cgiserver -f Dockerfile.cgiserver .
2837
2938multiarch_cgiserver : # # Makes a moosefs-cgiserver multi-architecture docker image for linux/arm64, linux/amd64 and linux/arm/v7 and pushes it to dockerhub
3039 docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-cgiserver:$(MOOSEFS_VERSION ) -f Dockerfile.cgiserver .
3140 docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-cgiserver:latest -f Dockerfile.cgiserver .
3241 docker pull ${HUB_USER} /moosefs-cgiserver:latest
3342
34- local_chunkserver : # # Makes a moosefs-chunkserver docker image for only the architecture we're running on. Does not push to dockerhub.
43+ local_chunkserver : local_base # # Makes a moosefs-chunkserver docker image for only the architecture we're running on. Does not push to dockerhub.
3544 docker buildx build --pull --load -t ${HUB_USER} /moosefs-chunkserver -f Dockerfile.chunkserver .
3645
3746multiarch_chunkserver : # # Makes a moosefs-chunkserver multi-architecture docker image for linux/arm64, linux/amd64 and linux/arm/v7 and pushes it to dockerhub
3847 docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-chunkserver:$(MOOSEFS_VERSION ) -f Dockerfile.chunkserver .
3948 docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-chunkserver:latest -f Dockerfile.chunkserver .
4049 docker pull ${HUB_USER} /moosefs-chunkserver:latest
4150
42- local_cli : # # Makes a moosefs-cli docker image for only the architecture we're running on. Does not push to dockerhub.
51+ local_cli : local_base # # Makes a moosefs-cli docker image for only the architecture we're running on. Does not push to dockerhub.
4352 docker buildx build --pull --load -t ${HUB_USER} /moosefs-cli -f Dockerfile.cli .
4453
4554multiarch_cli : # # Makes a moosefs-cli multi-architecture docker image for linux/arm64, linux/amd64 and linux/arm/v7 and pushes it to dockerhub
4655 docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-cli:$(MOOSEFS_VERSION ) -f Dockerfile.cli .
4756 docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-cli:latest -f Dockerfile.cli .
4857 docker pull ${HUB_USER} /moosefs-cli:latest
4958
50- local_master : # # Makes a moosefs-master docker image for only the architecture we're running on. Does not push to dockerhub.
59+ local_master : local_base # # Makes a moosefs-master docker image for only the architecture we're running on. Does not push to dockerhub.
5160 docker buildx build --pull --load -t ${HUB_USER} /moosefs-master -f Dockerfile.master .
5261
5362multiarch_master : # # Makes a moosefs-master multi-architecture docker image for linux/arm64, linux/amd64 and linux/arm/v7 and pushes it to dockerhub
5463 docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-master:$(MOOSEFS_VERSION ) -f Dockerfile.master .
5564 docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-master:latest -f Dockerfile.master .
5665 docker pull ${HUB_USER} /moosefs-master:latest
5766
58- local_metalogger : # # Makes a moosefs-metalogger docker image for only the architecture we're running on. Does not push to dockerhub.
67+ local_metalogger : local_base # # Makes a moosefs-metalogger docker image for only the architecture we're running on. Does not push to dockerhub.
5968 docker buildx build --pull --load -t ${HUB_USER} /moosefs-metalogger -f Dockerfile.metalogger .
6069
6170multiarch_metalogger : # # Makes a moosefs-metalogger multi-architecture docker image for linux/arm64, linux/amd64 and linux/arm/v7 and pushes it to dockerhub
6271 docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-metalogger:$(MOOSEFS_VERSION ) -f Dockerfile.metalogger .
6372 docker buildx build --build-arg application_version=${MOOSEFS_VERSION} --platform ${PLATFORMS} --pull --push -t ${HUB_USER} /moosefs-metalogger:latest -f Dockerfile.metalogger .
6473 docker pull ${HUB_USER} /moosefs-metalogger:latest
6574
66- local_netdump : # # Makes a moosefs-netdump docker image for only the architecture we're running on. Does not push to dockerhub.
75+ local_netdump : local_base # # Makes a moosefs-netdump docker image for only the architecture we're running on. Does not push to dockerhub.
6776 docker buildx build --pull --load -t ${HUB_USER} /moosefs-netdump -f Dockerfile.netdump .
6877
6978multiarch_netdump : # # Makes a moosefs-netdump multi-architecture docker image for linux/arm64, linux/amd64 and linux/arm/v7 and pushes it to dockerhub
@@ -72,7 +81,7 @@ multiarch_netdump: ## Makes a moosefs-netdump multi-architecture docker image fo
7281 docker pull ${HUB_USER} /moosefs-netdump:latest
7382
7483local : local_all # # Make images for whatever architecture you're running on, but does not push to docker hub
75- local_all : local_cgiserver local_chunkserver local_cli local_master local_metalogger local_netdump
84+ local_all : local_cgiserver local_chunkserver local_cli local_master local_metalogger local_netdump local_base
7685
7786multiarch_images : multiarch # # Builds multi-architecture docker images for all the services and pushes them to docker hub
7887multiarch : multiarch_cgiserver \
0 commit comments