summaryrefslogtreecommitdiff
path: root/tools/docker-run-sample
diff options
context:
space:
mode:
Diffstat (limited to 'tools/docker-run-sample')
-rwxr-xr-xtools/docker-run-sample6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/docker-run-sample b/tools/docker-run-sample
new file mode 100755
index 0000000..e7ac6ba
--- /dev/null
+++ b/tools/docker-run-sample
@@ -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 reo7sp/tgbot-cpp /usr/src/tgbot-cpp/samples/$1/$1