From 327baf318a739fd29fdc4a19e97db2412a739f99 Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Sun, 4 Aug 2019 00:51:55 -0700 Subject: [PATCH] add docker support --- Dockerfile | 5 +++++ Makefile | 3 +++ README.md | 9 +++++++++ 3 files changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a4c0535 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM chromedp/headless-shell +ADD wrp-linux /wrp +ENTRYPOINT ["/wrp"] +ENV PATH="/headless-shell:${PATH}" +LABEL maintainer="as@tenoware.com" diff --git a/Makefile b/Makefile index 01e579c..6daadbb 100644 --- a/Makefile +++ b/Makefile @@ -23,3 +23,6 @@ windows: clean: rm -rf wrp-linux wrp-freebsd wrp-openbsd wrp-macos wrp-windows.exe wrp-linux-rpi + +docker: + docker build -t tenox7/wrp:latest . diff --git a/README.md b/README.md index 256c8d8..ce3f8f2 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,21 @@ A HTTP proxy server that allows to use historical and obsolete web browsers on t 7. To send keystrokes fill K input box and press Go. There also are buttons for backspace, enter and arrow keys. ## Flags + ``` -l listen address:port, default :8080 -h headed mode, display browser window -d chromedp debug logging ``` +## Docker + +``` +docker run -d -p 8080:8080 --name wrp --restart unless-stopped tenox7/wrp + +docker logs -f wrp +``` + ## Minimal Requirements - Server / Gateway should run on a modern hardware/os that supports memory hungry Chrome.