Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
David Rossi
/
supervisord-docker
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 26848758
authored
Jan 05, 2017
by
David Rossi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
process log redirected to stdout
1 parent
7efb39a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
Dockerfile
README.md
supervisord.conf
Dockerfile
View file @
2684875
FROM
debian
FROM
ubuntu:16.04
RUN
apt-get update
&&
apt-get install -y openssh-server supervisor
RUN
apt-get update
&&
apt-get install -y openssh-server supervisor
RUN
mkdir -p /var/run/sshd /var/log/supervisor
RUN
mkdir -p /var/run/sshd /var/log/supervisor
...
...
README.md
View file @
2684875
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
## Questa immagine è un esempio per attivare un servizio (in questo caso sshd) tramite supervisord
## Questa immagine è un esempio per attivare un servizio (in questo caso sshd) tramite supervisord
# BUILD (esempio)
# BUILD (esempio)
## - sudo docker build -t mysupervisord .
```
sudo docker build -t mysupervisord .```
# RUN (esempio)
# RUN (esempio)
## - sudo docker run -ti --name buttami --rm -p 2022:22 -p 9001:9001 mysupervisord
```
sudo docker run -ti --name buttami --rm -p 2022:22 -p 9001:9001 mysupervisord
```
supervisord.conf
View file @
2684875
...
@@ -3,6 +3,8 @@ nodaemon=true
...
@@ -3,6 +3,8 @@ nodaemon=true
[
program
:
sshd
]
[
program
:
sshd
]
command
=/
usr
/
sbin
/
sshd
-
D
command
=/
usr
/
sbin
/
sshd
-
D
stdout_logfile
=/
dev
/
stdout
stdout_logfile_maxbytes
=
0
[
unix_http_server
]
[
unix_http_server
]
file
= /
tmp
/
supervisor
.
sock
file
= /
tmp
/
supervisor
.
sock
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment