新增jdk8-node7镜像

This commit is contained in:
KennyLee 2017-05-08 16:42:24 +08:00
parent 6c7b3c43d5
commit e23d8be290
3 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,23 @@
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/java:openjdk-8-jdk
MAINTAINER kennylee26 <kennylee26@gmail.com>
RUN apt-get update && \
apt-get install -y python-software-properties software-properties-common
RUN curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
RUN apt-get install -y nodejs && \
apt-get install -y inetutils-ping net-tools dnsutils supervisor && \
apt-get install -y python-pip && \
pip install supervisor-stdout
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
# add cnpm for taobao registry
RUN npm install -g cnpm pm2 --registry=https://registry.npm.taobao.org
COPY supervisor/supervisord.conf /etc/supervisor/supervisord.conf
COPY supervisor/conf.d/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Define default command.
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]

View File

@ -0,0 +1,9 @@
[supervisord]
nodaemon=true
[eventlistener:stdout]
command = supervisor_stdout
buffer_size = 100
events = PROCESS_LOG
result_handler = supervisor_stdout:event_handler

View File

@ -0,0 +1,35 @@
; supervisor config file
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
[inet_http_server]
port=:9001
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[inet_http_server]
port=:9001
[supervisorctl]
; serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
serverurl=http://localhost:9001
; The [include] section can just contain the "files" setting. This
; setting can list multiple files (separated by whitespace or
; newlines). It can also contain wildcards. The filenames are
; interpreted as relative to this file. Included files *cannot*
; include files themselves.
[include]
files = /etc/supervisor/conf.d/*.conf