浏览代码

增加Supervisor管理进程

rubyangxg 4 年之前
父节点
当前提交
0f8042c375
共有 1 个文件被更改,包括 0 次插入20 次删除
  1. 0 20
      Dockerfile

+ 0 - 20
Dockerfile

@@ -6,24 +6,4 @@ RUN /container/build.sh
 ENV LD_PRELOAD /usr/local/lib/faketime/libfaketime.so.1
 ENV FAKETIME_DONT_FAKE_MONOTONIC 1
 
-# supervisor配置文件路径
-ENV SUPERVISORD_CONF=/etc/supervisord.conf
-# supervisor临时文件路径(日志文件、sock文件、pid文件)
-ENV SUPERVISORD_TMP_CONF=/tmp/supervisor
-# supervisor程序块文件路径,即是[program]块
-ENV SUPERVISORD_INCLUDE_FILE=/etc/supervisordfile
-# web管理界面的IP
-ENV SUPERVISORD_WEB_IP=*
-# web管理界面的PORT
-ENV SUPERVISORD_WEB_PORT=9999
-# web管理界面的账号
-ENV SUPERVISORD_WEB_ACCOUNT=admin
-# web管理界面的密码
-ENV SUPERVISORD_WEB_PASSWORD=adminpass
-
-RUN mkdir -p ${SUPERVISORD_TMP_CONF}
-RUN mkdir -p ${SUPERVISORD_INCLUDE_FILE}
-RUN echo -e "[unix_http_server]\nfile=${SUPERVISORD_TMP_CONF}/supervisor.sock\n[inet_http_server]\nport=${SUPERVISORD_WEB_IP}:${SUPERVISORD_WEB_PORT}\nusername=${SUPERVISORD_WEB_ACCOUNT}\npassword=${SUPERVISORD_WEB_PASSWORD}\n[supervisord]\nlogfile=${SUPERVISORD_TMP_CONF}/supervisord.log\nlogfile_maxbytes=50MB\nlogfile_backups=10\nloglevel=info\npidfile=${SUPERVISORD_TMP_CONF}/supervisord.pid\nnodaemon=false\nminfds=1024\nminprocs=200\n[supervisorctl]\nserverurl=unix://${SUPERVISORD_TMP_CONF}/supervisor.sock\n[program:sshd]\ncommand=/usr/sbin/sshd -D\n[include]\nfiles = ${SUPERVISORD_INCLUDE_FILE}/*.ini" > ${SUPERVISORD_CONF}
-
-EXPOSE 9999
 CMD ["/usr/bin/supervisord", "--configuration=/etc/supervisord.conf"]