Giter Site home page Giter Site logo

heroku-buildpack-libreoffice-for-heroku-18's Introduction

Fully working LibreOffice buildpack for the heroku-18 stack ๐ŸŽ‰

Shamefully simple, and utilising an official AppImage copy of LibreOffice with its dependencies directly from the vendor... a working buildpack for LibreOffice 6.x (others possibly supported via a config file) on the heroku-18 stack (others possibly supported but you may be asking for trouble if you try), after a lot of trial & error.

Made with love (and out of frustration with incompatibility between LibreOffice 6 and bare-bone heroku-18) by @geomic, and with enhancements contributed in kind by @vesatoivonen.

Particularly useful if you use the libreconv gem for document conversion to PDF in Ruby on Rails applications, and results in a manageable slug size (which will likely keep you under heroku's soft limit as an added bonus) when compared with other options.

If you need the additional capabilities of headless LibreOffice 6, particularly for closer conversion of Office files to accurate PDFs, this buildpack is for you.

Add the heroku-buildpack-apt buildpack to your project:

heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-apt.git

Add our LibreOffice buildpack to your project:

heroku buildpacks:add --index 2 https://github.com/BlueTeaLondon/heroku-buildpack-libreoffice-for-heroku-18.git

Optionally, add the following buildpack, which provides a handy combination of fonts for LibreOffice to use:

heroku buildpacks:add --index 3 https://github.com/debitoor/heroku-buildpack-converter-fonts.git

Create an Aptfile file in your project root with the following content (do not include libreoffice here):

libsm6
libice6
libxinerama1
libdbus-glib-1-2
libharfbuzz0b
libharfbuzz-icu0
libx11-xcb1
libxcb1

Optionally, create a LibreOfficeAppImage file in your application repository to change the installed version to something other than the latest fresh. The file should contain only the full URL of a LibreOffice AppImage, from the official links found here. For example the latest still can be installed with:

https://libreoffice.soluzioniopen.com/stable/still/LibreOffice-still.basic-x86_64.AppImage

Redeploy your project after committing the above, et voilร ...!

heroku-buildpack-libreoffice-for-heroku-18's People

Contributors

benrobot avatar echan00 avatar edmorley avatar geomic avatar moacirmoda avatar pablohildo avatar sumeetattree avatar

Watchers

 avatar  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.