Public Repository

Last pushed: 3 months ago
Short Description
soffice service base on jre8,supervisor
Full Description

I use supervisor to start soffice service.

you can create a supervisord.conf file such as :

[supervisord]
nodaemon=true

[program:java]
command=java -Djava.security.egd=file:/dev/./urandom -jar /app.war

[program:soffice]
command=/opt/openoffice4/program/soffice -headless -accept="socket,host=0.0.0.0,port=8100;urp;" -nofirststartwizard

then write in your Dockerfile:

RUN mkdir -p /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord"]

to create your docker image from soffice.

my another Dockerfile such as(the app.war is a service that accept file and convert to html by soffice):

FROM wenxich/soffice

ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
JHIPSTER_SLEEP=0 \
JAVA_OPTS=""

ADD *.war /app.war

EXPOSE 8081
EXPOSE 8100

RUN mkdir -p /var/log/supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

CMD ["/usr/bin/supervisord"]

Docker Pull Command
Owner
wenxich

Comments (0)