From 1110e66ee388fb132b49eb44eb675a60c01e24a9 Mon Sep 17 00:00:00 2001 From: Markus Becker Date: Thu, 15 Nov 2018 10:01:21 +0100 Subject: [PATCH] Include non-dockerized target instructions (#25) I got there with trial and error, being not very trained with docker. But the proposed function works great. --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index abddae2..251e673 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,15 @@ For common cases you may want to create an alias in your `~/.profile` (or `~/.ba # For ZSH with Oh-My-Zsh! and 'docker' plugin enabled, you can also enable auto-completion: #compdef __docker_containers docker-ngrok -Then to the simple example just do `docker-ngrok web_service_container`. +Then to run the simple example just do `docker-ngrok web_service_container`. +For non dockerized http targets consider this helper function: + + function expose-ngrok() { + docker run --rm --net=host -e NGROK_PORT="$1" wernight/ngrok + } + +and then visit [localhost:4040](http://localhost:4040) for receiving the links. ## Feedbacks