Open cmoulliard opened 6 years ago
Problem resolved by doing this modification to the dockerfile
CMD -> ENTRYPOINT
ENTRYPOINT ["/usr/local/bin/supervisord","-c","/tmp/supervisor.conf"]
and to stdout the message from the bash script
[program:echo]
command = /tmp/echo.sh
stdout_logfile=/dev/stdout
stdout_events_enabled=true
REMARK: should be good to enhance the doc !
@cmoulliard any suggestion for document improvement?
When I build the following image to start supervisord and launch the docker container as a pod on k8s/openshift, no log is reported using
oc logs command
Docker also doesn't display log messages excepted when we kill the process
Dockerfile
Supervisor.conf file
echo.sh file
To create the pod
Of course, we get log messages when supervisord is started locally
QUESTIONS:
echo Hello World
doesn't appear within the log ?