summaryrefslogtreecommitdiff
path: root/tools/docker-run-sample-webhook
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2018-07-23 02:35:50 +0300
committerOleg Morozenkov <m@oleg.rocks>2018-07-23 02:35:50 +0300
commit98b8b7e4338b71ee46c4301b0bf2ae667be9a99d (patch)
tree32f8b0d32048b2d83b57773c0efa3db9600b8701 /tools/docker-run-sample-webhook
parent1dd3affe306793d2129f121c11e43c45ae8690da (diff)
parent167e3e7607e43a0f06c7f87ced94f481e6525b0e (diff)
Merge branch 'master' into nicholascw-master
Diffstat (limited to 'tools/docker-run-sample-webhook')
-rwxr-xr-xtools/docker-run-sample-webhook6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/docker-run-sample-webhook b/tools/docker-run-sample-webhook
new file mode 100755
index 0000000..386b0c6
--- /dev/null
+++ b/tools/docker-run-sample-webhook
@@ -0,0 +1,6 @@
+#!/bin/bash
+set -e
+
+cd ..
+docker build -t reo7sp/tgbot-cpp -f Dockerfile_test .
+docker run --rm -it -e TOKEN=$2 -e WEBHOOK_URL=$3 -p $4:8080 reo7sp/tgbot-cpp /usr/src/tgbot-cpp/samples/$1/$1