docker-entrypoint.sh 270 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # start mysql
  3. mysqld_safe &
  4. sleep 5s
  5. mysql -h127.0.0.1 -uroot -purlooker.pass < sql/schema.sql
  6. # start web
  7. ./control start web
  8. # start alarm
  9. ./control start alarm
  10. # start agent
  11. ./control start agent
  12. # keep script in foreground
  13. tail -f logs/*/stdout.log