Skip to content

Commit 100fc3e

Browse files
authored
Merge pull request #16 from pataquets/master
Add Docker support
2 parents 67b9532 + 488f87d commit 100fc3e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:2.7
2+
3+
COPY ./tsproxy.py /usr/src/tsproxy/
4+
WORKDIR /usr/src/tsproxy/
5+
RUN chmod -v a+x ./tsproxy.py
6+
7+
ENTRYPOINT [ "./tsproxy.py", "--bind", "0.0.0.0" ]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ The traffic shaping configuration can be changed dynamically at runtime by passi
5050

5151
All bandwidth and latency changes also carry an implied flush and clear out any pending data.
5252

53+
# Docker
54+
A Dockerfile is provided to allow Docker development workflow.
55+
56+
Also, an [official image on Docker Hub](https://hub.docker.com/r/webpagetest/tsproxy/) is available from source via an [Automated Build](https://docs.docker.com/docker-hub/builds/) to enable use of tsproxy in Docker environments. You can run tsproxy without installing anything (other than Docker) by issuing:
57+
```bash
58+
docker run --rm -it -p 1080:1080 webpagetest/tsproxy [options...]
59+
```
5360

5461
# Configuring Chrome to use tsproxy
5562
Add a --proxy-server command-line option.

0 commit comments

Comments
 (0)