Commit 7efb39a1 by David Rossi

first commit

0 parents
Showing with 34 additions and 0 deletions
FROM debian
RUN apt-get update && apt-get install -y openssh-server supervisor
RUN mkdir -p /var/run/sshd /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 22 9001
CMD ["/usr/bin/supervisord"]
# Debian e supervisord
## Questa immagine è un esempio per attivare un servizio (in questo caso sshd) tramite supervisord
# BUILD (esempio)
## - sudo docker build -t mysupervisord .
# RUN (esempio)
## - sudo docker run -ti --name buttami --rm -p 2022:22 -p 9001:9001 mysupervisord
[supervisord]
nodaemon=true
[program:sshd]
command=/usr/sbin/sshd -D
[unix_http_server]
file = /tmp/supervisor.sock
chmod = 0777
chown= nobody:nogroup
username = min
password = admin
[inet_http_server]
port = 0.0.0.0:9001
username = min
password = admin
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!