aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-02-08 12:34:38 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-02-08 12:34:38 +0100
commit95267fa17cf2b2bbaab7a3cd28b9310edab64391 (patch)
tree76a66e4ebe89fe901921538913e6d967f130b73d /Makefile
parentMakefile: consistency (diff)
downloadmath-server-95267fa17cf2b2bbaab7a3cd28b9310edab64391.tar.gz
math-server-95267fa17cf2b2bbaab7a3cd28b9310edab64391.zip
Makefile: remove obsolete recipes
Diffstat (limited to '')
-rw-r--r--Makefile24
1 files changed, 1 insertions, 23 deletions
diff --git a/Makefile b/Makefile
index 89a4d5c..1456d04 100644
--- a/Makefile
+++ b/Makefile
@@ -41,12 +41,8 @@ boost_dir := $(build_dir)/boost
cmake_dir := $(build_dir)/cmake
DESTDIR ?= $(build_dir)/install
-# Enable buildx support:
-export DOCKER_CLI_EXPERIMENTAL := enabled
# Target platforms (used by buildx):
DOCKER_PLATFORMS := linux/amd64,linux/armhf
-# In case buildx isn't installed (e.g. on Ubuntu):
-BUILDX_VERSION := v0.4.2
# Docker Hub credentials:
DOCKER_USERNAME := egortensin
@@ -174,26 +170,8 @@ compose/build: docker/check-build
compose/push: docker/check-push compose/build
docker-compose push
-# The simple way to build multiarch repos is `docker buildx`.
-
-binfmt_image := docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
-
-.PHONY: fix-binfmt
-fix-binfmt:
- docker run --rm --privileged '$(call escape,$(binfmt_image))'
-
-curl := curl --silent --show-error --location --dump-header - --connect-timeout 20
-
-buildx_url := https://github.com/docker/buildx/releases/download/$(BUILDX_VERSION)/buildx-$(BUILDX_VERSION).linux-amd64
-
-.PHONY: buildx/install
-buildx/install:
- mkdir -p -- ~/.docker/cli-plugins/
- $(curl) --output ~/.docker/cli-plugins/docker-buildx -- '$(call escape,$(buildx_url))'
- chmod +x -- ~/.docker/cli-plugins/docker-buildx
-
.PHONY: buildx/create
-buildx/create: fix-binfmt
+buildx/create:
docker buildx create --use --name '$(call escape,$(PROJECT))_builder'
.PHONY: buildx/rm