Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker support #16

Merged
merged 2 commits into from Jan 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
@@ -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
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