Verbose Logging in Docker

15,679 views
Skip to first unread message

Cobin Bluth

unread,
Apr 6, 2016, 6:39:09 PM4/6/16
to Orthanc Users
I am currently running the lastest docker image of Orthanc with all the plugins.

I can see the logs from docker with this: docker logs -f orthanc

Is there a way to make the application output more verbose logging?

I want to see if my lua scripts are executing, amongst other things.

Cobin Bluth

unread,
Apr 6, 2016, 7:04:01 PM4/6/16
to Orthanc Users
I have decided to git clone the githib repo and modify the ENTRYPOINT in the Dockerfile so that it has the --verbose flag.

Upon building the Dockerfile, I saw errors during the build: http://i.imgur.com/hcFuRmQ.png

I will check to see if it runs properly.

Cobin Bluth

unread,
Apr 6, 2016, 7:37:30 PM4/6/16
to Orthanc Users
The build of the Dockerfile worked great, and the error in the screenshot seemed to not cause any issues.

I am now seeing verbose orthanc logging in the docker logs.

Here is a copy of the Dockerfile:
 

FROM jodogne/orthanc

MAINTAINER Sebastien Jodogne <s.jodo-REDACTED-mail.com>
LABEL Description="Official plugins for Orthanc" Vendor="Sebastien Jodogne, University Hospital of Liege"

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install libgdcm2-dev libjpeg-dev postgresql-server-dev-all && rm -rf /var/lib/apt/lists/*

ADD ./build-webviewer.sh /root/build-webviewer.sh
RUN bash /root/build-webviewer.sh "default"

ADD ./build-postgresql.sh /root/build-postgresql.sh
RUN bash /root/build-postgresql.sh "default"

ADD ./build-dicomweb.sh /root/build-dicomweb.sh
RUN bash /root/build-dicomweb.sh "default"

VOLUME [ "/var/lib/orthanc/db" ]
EXPOSE 4242
EXPOSE 8042

ENTRYPOINT [ "Orthanc", "--verbose" ]
CMD [ "/etc/orthanc/" ]

Sébastien Jodogne

unread,
Apr 7, 2016, 12:10:04 AM4/7/16
to Orthanc Users
These are simple compilation warnings, and they can safely be ignored (they are related to detecting the endianness of the computer):

Sébastien Jodogne

unread,
Apr 7, 2016, 12:17:44 AM4/7/16
to Orthanc Users
Instead of recompiling the full container, you can simply add "--verbose" at the end of the Docker command-line:

# sudo docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc --verbose

The trailing options are given to the entrypoint.

I have just added an additional comment in the documentation of the OrthancDocker repository to hopefully make things clearer:

Cobin Bluth

unread,
Apr 7, 2016, 4:03:47 PM4/7/16
to Orthanc Users
Wonderful! Thanks for that, very useful!
Reply all
Reply to author
Forward
0 new messages