From f675649976030dc291099ce7c95cd7236f397b22 Mon Sep 17 00:00:00 2001 From: Daniel Weibel Date: Tue, 14 Aug 2018 23:45:53 +0800 Subject: [PATCH] Add docker-run.sh --- docker-run.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 docker-run.sh diff --git a/docker-run.sh b/docker-run.sh new file mode 100755 index 0000000..0167cee --- /dev/null +++ b/docker-run.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +TAG=${1:-core-0.0.1} + +# Set values before executing +TG_API_ID= +TG_API_HASH= +MAILGUN_API_KEY= +MAILGUN_SENDING_ADDRESS= +AMQP_URI= + +docker run --rm -d \ + -e TG_API_ID="$TG_API_ID" \ + -e TG_API_HASH="$TG_API_HASH" \ + -e MAILGUN_API_KEY="$MAILGUN_API_KEY" \ + -e MAILGUN_DOMAIN="$MAILGUN_DOMAIN" \ + -e MAILGUN_SENDING_ADDRESS="$MAILGUN_SENDING_ADDRESS" \ + -e AMQP_URI="$AMQP_URI" \ + -v tg-monitor:/var/tmp/tg-monitor \ + weibeld/tg-monitor:"$TAG"