Giter Site home page Giter Site logo

googya / docker-image-jodconverter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jodconverter/docker-image-jodconverter-examples

0.0 0.0 0.0 899 KB

Docker image with jodconverter + libreoffice for document conversion through a REST api

Home Page: https://github.com/sbraconnier/jodconverter

License: MIT License

Dockerfile 59.06% Makefile 27.42% Shell 13.51%

docker-image-jodconverter's Introduction

Wat

Uses the great implementation of Simon Braconnier JODconverter to offer LibreOffice as an Document-Converter Web-Service.

This docker image is a "all you need" and should help you running JODconverter as a WebApp utilizing the packaged LibreOffice for conversions. Ultimately this should be your "document conversion chain" service

To run this in a production-ready stack, please see the follow-up project eugenmayer/converter

Builds info

  • Official OpenJDK 11 Java (bellsoft debian based)(since that is what we want with docker)
  • LibreOffice is 6.1.5+ right now

Hint: We cannot split JODconverter and LibreOffice into two separate images since for now, JODconverter has to be running on the same machine as LibreOffice. The main reason behind this is, that JODconverter does manage the LibreOffice instances itself, starts and stop them. It does not just connect to it (and if, it uses a local socket)

Run

Thats the variant with a web-GUI (see screenshot)

docker run --memory 512m --rm -p 8080:8080 eugenmayer/jodconverter:gui

Now you can connect to http://localhost:8080 with a nice web-ui for conversion

Screenshot

Or you pick the variant a REST interface only

docker run --memory 512m  --rm -p 8080:8080 eugenmayer/jodconverter:rest

Screenshot

For more please check the wiki at https://github.com/sbraconnier/jodconverter

To run this in a production-ready stack, please see the follow-up project eugenmayer/converter

Docker images

  • eugenmayer/jodconverter:base - OpenJDK 11: libreoffice included, also start scripts but now actual applications
  • eugenmayer/jodconverter:gui - OpenJDK 10 yet (see this issue): the WebGUI, spring based converter
  • eugenmayer/jodconverter:rest - OpenJDK 10 yet (see this issue) rest only variant

Configuration

You can configure the docker images by mounting /etc/app/application.properties and put whatever you like into them.

For example if you like to have 2 LibreOffice instances, you would put into the file

# amount of libreOffice instances to start - one for each given port. So this means 2
jodconverter.local.port-numbers: 2002, 2003
# change the tmp folder
jodconverter.local.working-dir: /tmp
# change upload sizes
spring.servlet.multipart.max-file-size: 5MB
spring.servlet.multipart.max-request-size: 5MB
# change the server port (where the REST app is listenting
server.port=8090

Build youerself

make build
make start-gui
# or
make start-rest

now see above under "Run" how to access it

Credits

All of those please forward to sbraconnier's jodconverter - he does the real work :) And of course also credits to LibreOffice for actually giving us the headless mode and the conversion options in the first place

docker-image-jodconverter's People

Contributors

alwinegger avatar eugenmayer avatar wussup avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.