Sign inSign up

wenxich/soffice

By wenxich

Updated about 9 years ago

soffice service base on jre8,supervisor

Image
0

208

wenxich/soffice repository overview

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"]

Tag summary

Content type

Image

Digest

Size

466.9 MB

Last updated

about 9 years ago

docker pull wenxich/soffice