Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kolok committed Mar 5, 2024
1 parent 210552b commit 58d869b
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions .buildpacks
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
https://github.com/Scalingo/buildpack-jvm-common
https://github.com/Scalingo/apt-buildpack
https://github.com/Scalingo/nodejs-buildpack.git
https://github.com/Scalingo/python-buildpack.git
7 changes: 5 additions & 2 deletions Aptfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
openjdk-17-jre
libreoffice-core-nogui
libreoffice-java-common
libreoffice-java-common
libreoffice-script-provider-python
uno-libs-private
python3-uno
unoconv
9 changes: 9 additions & 0 deletions convertapi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

export SAL_USE_VCLPLUGIN=gen
export HOME=/app && /app/.apt/usr/bin/soffice --headless --convert-to pdf:writer_pdf_Export --outdir /app/media /app/documents/Avenant-template.docx
export HOME=/app && /app/.apt/usr/bin/libreoffice --headless --convert-to pdf:writer_pdf_Export --outdir /app/media /app/documents/Avenant-template.docx

export PATH=/app/.apt/usr/lib/jvm/java-13-openjdk-amd64/bin:$PATH
export JAVA_HOME=/app/.apt/usr/lib/jvm/java-13-openjdk-amd64
LD_LIBRARY_PATH=/app/.apt/usr/lib/libreoffice/program
unoconv -f pdf /app/documents/Avenant-template.docx
2 changes: 2 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ sentry-sdk
tenacity
tqdm
typing-extensions
uno
unoserver
whitenoise
15 changes: 15 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,11 @@ psycopg2==2.9.9 \
--hash=sha256:de80739447af31525feddeb8effd640782cf5998e1a4e9192ebdf829717e3913 \
--hash=sha256:ff432630e510709564c01dafdbe996cb552e0b9f3f065eb89bdce5bd31fabf4c
# via -r requirements.in
py==1.4.22 \
--hash=sha256:1ef0c4eb8f12f970dd831f32755f95a36af66a8ca9c35991100146428fd42474
# via
# pytest
# uno
pycparser==2.21 \
--hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \
--hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206
Expand Down Expand Up @@ -477,6 +482,9 @@ pyrsistent==0.19.2 \
--hash=sha256:ea6b79a02a28550c98b6ca9c35b9f492beaa54d7c5c9e9949555893c8a9234d0 \
--hash=sha256:f1258f4e6c42ad0b20f9cfcc3ada5bd6b83374516cd01c0960e3cb75fdca6770
# via jsonschema
pytest==2.6.0 \
--hash=sha256:1e4f7c23d5444c01316bd84edd629af3170331fade12bcc263f0a2a716bbaed1
# via uno
python-box==7.1.1 \
--hash=sha256:0036fd47d388deaca8ebd65aea905f88ee6ef91d1d8ce34898b66f1824afbe80 \
--hash=sha256:1b3f346e332dba16df0b0543d319d9e7ce07d93e5ae152175302894352aa2d28 \
Expand Down Expand Up @@ -618,6 +626,13 @@ tzdata==2023.3 \
--hash=sha256:11ef1e08e54acb0d4f95bdb1be05da659673de4acbd21bf9c69e94cc5e907a3a \
--hash=sha256:7e65763eef3120314099b6939b5546db7adce1e7d6f2e179e3df563c70511eda
# via celery
uno==0.3.3 \
--hash=sha256:2037b35b5f038c8156c273b963d1c4afd536f72939b1bb86a17460d4251935c4
# via -r requirements.in
unoserver==2.0.1 \
--hash=sha256:a092e1529fa8e4e6370e92a9ab287900d9437e862d97b9286752bcf74752f286 \
--hash=sha256:f2b700552b8a4c8056a3f5ae23ce744dfc9e87ba0872be89d4050e2e1ab4610a
# via -r requirements.in
uritemplate==4.1.1 \
--hash=sha256:4346edfc5c3b79f694bccd6d6099a322bbeb628dbf2cd86eea55a456ce5124f0 \
--hash=sha256:830c08b8d99bdd312ea4ead05994a38e8936266f84b9a7878232db50b044e02e
Expand Down

0 comments on commit 58d869b

Please sign in to comment.