Athena PDF on Google App Engine Flexible with Docker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conf
Dockerfile
README.md
app.yaml
docker-compose.yaml

README.md

Athena PDF Conversion Service on Google App Engine

This is a Google App Engine Flexible Environment Docker reference configuration for running the Athena PDF conversion service.

Running locally

  1. Install Docker for Mac

  2. Kill any other apps running on localhost.

  3. Run Docker Compose to start up the containers. -d to run containers in the background.

     $ docker-compose up -d
     $ docker-compose ps
    
  4. Convert the GitHub homepage to a PDF.

     $ open http://localhost:8080/convert?auth=arachnys-weaver&url=https://github.com
    
  5. Convert an html file on your machine to PDF.

     $ curl http://jargon-file.org/archive/jargon-1.5.0.dos.txt > jargon.txt
     $ curl -F "file=@jargon.txt" \
       http://localhost:8080/convert?auth=arachnys-weaver \
       > jargon.pdf
    
  6. Teardown.

     $ docker-compose down
    

Deploying to Google App Engine

$ gcloud projects list
$ gcloud set project=chocolate-covered-raisins
$ gcloud app deploy
$ gcloud app browse -s athenapdf
$ curl https://athenapdf-dot-chocolate-covered-raisins.appspot.com/convert?auth=arachnys-weaver

Shout Outs