From 085bc2f9272437f6a69dceab60acf10c8d7ff9f2 Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Fri, 8 Feb 2019 21:13:34 -0800 Subject: [PATCH] Release docker container and prep for v0.4 --- Makefile | 13 ++++++++++--- README.md | 4 ++++ proxy.py | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f4e07c1c..f2a3f24b 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,11 @@ SHELL := /bin/bash NS ?= abhinavsingh IMAGE_NAME ?= proxy.py -VERSION ?= v0.3 +VERSION ?= v0.4 +LATEST_TAG := $(NS)/$(IMAGE_NAME):latest IMAGE_TAG := $(NS)/$(IMAGE_NAME):$(VERSION) -.PHONY: all clean test package test-release release coverage flake8 container +.PHONY: all clean test package test-release release coverage flake8 container run-container release-container all: clean test @@ -38,4 +39,10 @@ flake8: flake8 --ignore=E501,W504 tests.py container: - docker build -t $(IMAGE_TAG) . + docker build -t $(LATEST_TAG) -t $(IMAGE_TAG) . + +run-container: + docker run -it -p 8899:8899 --rm $(LATEST_TAG) + +release-container: + docker push $(IMAGE_TAG) diff --git a/README.md b/README.md index a9e12a8e..f2b9aae1 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,10 @@ To install proxy.py, simply: $ pip install --upgrade proxy.py +Using docker: + + $ docker run -it -p 8899:8899 --rm abhinavsingh/proxy.py + Usage ----- diff --git a/proxy.py b/proxy.py index 5b50dc96..c633ac90 100755 --- a/proxy.py +++ b/proxy.py @@ -24,7 +24,7 @@ from collections import namedtuple if os.name != 'nt': import resource -VERSION = (0, 3) +VERSION = (0, 4) __version__ = '.'.join(map(str, VERSION[0:2])) __description__ = 'Lightweight HTTP, HTTPS, WebSockets Proxy Server in a single Python file' __author__ = 'Abhinav Singh'