Skip to content

Commit

Permalink
Merge pull request #16 from pataquets/master
Browse files Browse the repository at this point in the history
Add Docker support
  • Loading branch information
pmeenan committed Jan 10, 2018
2 parents 67b9532 + 488f87d commit 100fc3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:2.7

COPY ./tsproxy.py /usr/src/tsproxy/
WORKDIR /usr/src/tsproxy/
RUN chmod -v a+x ./tsproxy.py

ENTRYPOINT [ "./tsproxy.py", "--bind", "0.0.0.0" ]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ The traffic shaping configuration can be changed dynamically at runtime by passi

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

# Docker
A Dockerfile is provided to allow Docker development workflow.

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:
```bash
docker run --rm -it -p 1080:1080 webpagetest/tsproxy [options...]
```

# Configuring Chrome to use tsproxy
Add a --proxy-server command-line option.
Expand Down

0 comments on commit 100fc3e

Please sign in to comment.