Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpolden/echoip.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2019-03-29 22:38:43 +0300
committerMartin Polden <mpolden@mpolden.no>2019-03-29 22:38:43 +0300
commit3a91baab21f999553e2d29b867ec07279a90304a (patch)
tree3aa3f62204d44273c05da00ebc2b26f99238552c /Makefile
parent99f95561732661dc04323afe5275d53e1cfc3d82 (diff)
Build without cgo
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6c234b5..7d28655 100644
--- a/Makefile
+++ b/Makefile
@@ -39,5 +39,10 @@ docker-build:
docker-login:
@echo "$(DOCKER_PASSWORD)" | docker login -u "$(DOCKER_USERNAME)" --password-stdin
-docker-push: docker-login
+docker-test:
+ $(eval CONTAINER=$(shell docker run --rm --detach --publish-all $(DOCKER_IMAGE)))
+ $(eval DOCKER_PORT=$(shell docker port $(CONTAINER) | cut -d ":" -f 2))
+ curl -qfsS -m 5 localhost:$(DOCKER_PORT) > /dev/null; docker stop $(CONTAINER)
+
+docker-push: docker-test docker-login
docker push $(DOCKER_IMAGE)