Release docker container and prep for v0.4
This commit is contained in:
parent
6aa4e56b66
commit
085bc2f927
13
Makefile
13
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)
|
||||
|
|
|
@ -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
|
||||
-----
|
||||
|
||||
|
|
2
proxy.py
2
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'
|
||||
|
|
Loading…
Reference in New Issue