StackStorm/st2express — pull request #16 by DoriftoShoes (2014-11-12 23:57:37+00:00)
Title: Docker run improvements

the start.sh script was failing due to being unable to connect to the api. I added a sleep and now it is happy. I also had it expose 9101 so the container doesn't have to be run interactive and the client can be run local.

[ root@d568d4e59c5b:~ ]$ /root/st2/start.sh
* Starting OpenBSD Secure Shell server sshd [ OK ]
* Starting message broker rabbitmq-server [ OK ]
* Starting database mongodb [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for tables which need an upgrade, are corrupt or were
not closed cleanly.
actionrunner PID: 825
actionrunner PID: 826
actionrunner PID: 827
actionrunner PID: 828
actionrunner PID: 829
actionrunner PID: 830
actionrunner PID: 831
actionrunner PID: 832
actionrunner PID: 833
actionrunner PID: 834
st2api PID: 835
sensor_container PID: 836
history PID: 837
mistral PID: 838
Sleep for 10 seconds while services start...
==============================

_ ___ ____ _ __
| | |__ \ / __ \| |/ /
___| |_ ) | | | | | ' /
/ __| __| / / | | | | <
\__ \ |_ / /_ | |__| | . \
|___/\__|____| \____/|_|\_\

st2 is installed and ready
[ root@d568d4e59c5b:~ ]$