Public Repository

Last pushed: a year ago
Short Description
sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
Full Description

#tags latest
改为国内源
sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list

#tags supervisor
···
FROM ubuntu:16.04
MAINTAINER becivells becivells@gmail.com

becivells/ubuntu:supervisor

RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
apt-get -y update && apt-get install -y supervisor && \
mkdir -p /var/log/supervisor && \
mkdir -p /etc/supervisord.d/ && \
mkdir -p /var/run/supervisor/
COPY config/supervisord.conf /etc/supervisord.conf

CMD ["/usr/bin/supervisord","-c","/etc/supervisord.conf"]
···

supervisord.conf
···
[unix_http_server]
file=/var/run/supervisor/supervisor.sock

[supervisord]
nodaemon=true
logfile=/var/log/supervisor/supervisord.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=info
pidfile=/var/run/supervisord.pid

[supervisorctl]
serverurl=unix:///var/run/supervisor/supervisor.sock

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[include]
files = supervisord.d/*.conf

···

tags base

安装了ssh 只运行了ssh
···
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN apt-get -y update && apt-get install -y apt-utils python-pip wget supervisor
RUN apt-get install -y screen netcat curl inetutils-ping iftop openssh-server cron vim net-tools sudo
RUN apt-get install -y zlib1g-dev gcc make libpcre3 libpcre3-dev openssl libssl-dev

···

Docker Pull Command
Owner
becivells