Skip to content

jawa/heroku-buildpack-libreoffice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Buildpack: LibreOffice

Heroku buildpack for LibreOffice that can be used by unoconv, docsplit, etc.

Usage

LibreOffice depends on Java, so the Java buildpack is needed. Hence, we have to create a multipack app.

heroku create --buildpack https://github.com/ddollar/heroku-buildpack-multi.git

Next, add the Java buildpack, and this one to .buildpacks:

echo "https://github.com/heroku/heroku-buildpack-java.git
https://github.com/rishihahs/heroku-buildpack-libreoffice.git" > .buildpacks

Heroku's Java buildpack requires a pom.xml, so if you don't have one, create a dummy:

echo '<project><modelVersion>4.0.0</modelVersion><groupId>com.dummy</groupId><artifactId>dummy</artifactId><version>1.0-SNAPSHOT</version><packaging>pom</packaging></project>' > pom.xml

Finally:

git push heroku master

Build

Binaries used in the buildpack are prebuilt and hosted on SourceForge for convenience, but you can build them yourself like so:

heroku create --buildpack https://github.com/heroku/heroku-buildpack-java.git

Make sure you create a dummy pom.xml (as shown above in Usage), and after pushing:

heroku run bash
./build/libreoffice.sh

The binaries will be in $temp_dir/release.

License

Licensed under the MIT License. See LICENSE file.

About

Heroku buildpack for LibreOffice

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%