standalone-packages 726 B

12345678910111213141516171819
  1. export DEBIAN_FRONTEND=noninteractive
  2. apt-get update
  3. apt-get install -y python2.7 python-docutils mysql-server \
  4. supervisor python-pip && \
  5. apt-get -y clean
  6. pip install supervisor-stdout
  7. rm -rf /var/lib/apt/lists/*
  8. rm -rf /usr/share/doc/
  9. rm -rf /usr/share/man/
  10. rm -rf /usr/share/locale/
  11. rm -rf /var/log/*
  12. mkdir -p /var/log/supervisor /var/log/mysql
  13. chgrp -R 0 /etc/supervisor /var/lib/mysql /var/log/supervisor /var/log/mysql
  14. chmod -R g=u /etc/supervisor /var/lib/mysql /var/log/supervisor /var/log/mysql
  15. sed -r -i /etc/mysql/my.cnf \
  16. -e 's/^ *user *.+/user=1001/' \
  17. -e 's#/var/run/mysqld/mysqld.sock#/app/tmp/sockets/mysqld.sock#' \
  18. -e 's#/var/run/mysqld/mysqld.pid#/app/tmp/pids/mysqld.pid#'