aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-09-13 00:26:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-09-13 01:27:44 +0300
commit9342fdd84c640be26fc0d8da524f0b19f8751358 (patch)
tree957050e349a045511db2f521ac993cd90b8b9e79
parentupdate cmake-common (diff)
downloadmath-server-9342fdd84c640be26fc0d8da524f0b19f8751358.tar.gz
math-server-9342fdd84c640be26fc0d8da524f0b19f8751358.zip
Makefile: better curl usage
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5c780c7..da832f9 100644
--- a/Makefile
+++ b/Makefile
@@ -12,10 +12,12 @@ PROJECT := math-server
export DOCKER_CLI_EXPERIMENTAL := enabled
# Target platforms (used by buildx):
PLATFORMS := linux/amd64,linux/armhf
-# Docker Hub credentials:
-DOCKER_USERNAME := egortensin
# In case buildx isn't installed (e.g. on Ubuntu):
BUILDX_VERSION := v0.4.2
+# Docker Hub credentials:
+DOCKER_USERNAME := egortensin
+
+curl := curl --silent --show-error --location --dump-header - --connect-timeout 20
.PHONY: all
all: build
@@ -108,7 +110,7 @@ fix-binfmt:
.PHONY: buildx/install
buildx/install:
mkdir -p -- ~/.docker/cli-plugins/
- curl --silent --show-error --location -- 'https://github.com/docker/buildx/releases/download/$(BUILDX_VERSION)/buildx-$(BUILDX_VERSION).linux-amd64' > ~/.docker/cli-plugins/docker-buildx
+ $(curl) --output ~/.docker/cli-plugins/docker-buildx -- 'https://github.com/docker/buildx/releases/download/$(BUILDX_VERSION)/buildx-$(BUILDX_VERSION).linux-amd64'
chmod +x -- ~/.docker/cli-plugins/docker-buildx
.PHONY: buildx/create