2020-01-06 00:26:35 +01:00
|
|
|
all:
|
|
|
|
honcho start # install honcho (pip install honcho) or procman (the original ruby script)
|
|
|
|
|
2019-11-18 22:46:11 +01:00
|
|
|
.PHONY: docker
|
|
|
|
|
2020-01-11 03:32:34 +01:00
|
|
|
NAME := bsergean/echo_server
|
2019-11-18 22:46:11 +01:00
|
|
|
TAG := $(shell cat DOCKER_VERSION)
|
|
|
|
IMG := ${NAME}:${TAG}
|
|
|
|
LATEST := ${NAME}:latest
|
|
|
|
BUILD := ${NAME}:build
|
|
|
|
|
|
|
|
docker_test:
|
|
|
|
docker build -t ${BUILD} .
|
|
|
|
|
|
|
|
docker:
|
|
|
|
git clean -dfx
|
|
|
|
docker build -t ${IMG} .
|
|
|
|
docker tag ${IMG} ${BUILD}
|
|
|
|
|
|
|
|
docker_push:
|
|
|
|
docker tag ${IMG} ${LATEST}
|
|
|
|
docker push ${LATEST}
|
|
|
|
docker push ${IMG}
|
2020-01-11 03:32:34 +01:00
|
|
|
|
2020-01-13 06:32:26 +01:00
|
|
|
echo_server:
|
2020-01-12 19:34:33 +01:00
|
|
|
docker run -p 8766:8766 -e BIND_HOST=0.0.0.0 -e MODE=echo_server -it --rm bsergean/echo_server:build
|
|
|
|
|
2020-01-13 06:32:26 +01:00
|
|
|
echo_server_ssl:
|
2020-01-12 19:34:33 +01:00
|
|
|
docker run -p 8766:8766 -e BIND_HOST=0.0.0.0 -e MODE=echo_server_ssl -it --rm bsergean/echo_server:build
|
2020-01-13 06:32:26 +01:00
|
|
|
|
|
|
|
broadcast_server:
|
|
|
|
docker run -p 8766:8766 -e BIND_HOST=0.0.0.0 -e MODE=broadcast_server -it --rm bsergean/echo_server:build
|
|
|
|
|
|
|
|
broadcast_server_ssl:
|
|
|
|
docker run -p 8766:8766 -e BIND_HOST=0.0.0.0 -e MODE=broadcast_server_ssl -it --rm bsergean/echo_server:build
|