-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
25 lines (22 loc) · 774 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
docker run \
--name prodiwebhooks_mysql \
-e MYSQL_ROOT_PASSWORD=$MY_MYSQL_ROOT_PASSWORD \
-p 3307:3306 -d mysql
sleep 8
docker exec -i prodiwebhooks_mysql mysql -uroot -p$MY_MYSQL_ROOT_PASSWORD < test.sql
docker exec -i prodiwebhooks_mysql mysql -uroot -p$MY_MYSQL_ROOT_PASSWORD < messages.sql
docker run \
--name mxabierto-prospera_digital_webhooks \
--link prodiwebhooks_mysql:prodiwebhooks_mysql \
-e CELLPHONE=$MY_CELLPHONE \
-e TEST_PHONE=$TEST_PHONE \
-e PASSWORD=$MY_WHATSAPP_PASSWORD \
-p 11300:11300 \
-p 5001:5001 \
-e COVERALLS_REPO_TOKEN=$MY_COVERALLS_TOKEN \
-e RAPIDPRO_TOKEN=$MY_RAPIDPRO_TOKEN \
-e MESSAGE_RECEIVED_URL=$MY_MESSAGE_RECEIVED_URL \
-e PD2_PHONENUM="$PD2_PHONENUM" \
-e UUID=$MYUUID \
mxabierto-prospera_digital_webhooks