Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

ngs-archives/docker-libreoffice-s3

Repository files navigation

docker-libreoffice-s3

CircleCI

Usage

docker pull atsnngs/libreoffice-s3
docker run -p 8080:8080 \
  -e AWS_REGION=ap-northeast-1 \
  -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
  -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
  -e BUGSNAG_API_KEY=$BUGSNAG_API_KEY \
  -e ENV=production \
  --rm atsnngs/libreoffice-s3

curl \
  -H 'Content-Type: application/json' \
  -d '{
    "bucket": "my-bucket",
    "key": "/path/to/awesome.pptx",
    "callback_url": "http://requestb.in/xxxxxx",
    "callback_method": "PATCH"
  }' http://0.0.0.0:8080

The callback payload would be like:

{
  "status": "completed",
  "thumbnails": {
    "preview": {
      "content_hash": "2bd4e36a5dbd21ea859c44dfbc80f1e4",
      "content_type": "application/pdf",
      "content_size": 12440,
      "width": 842,
      "height": 595
    }
  }
}