Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP-1351: Updating python to 3.9, moving to using wkhtmltopdf from a layer #6

Merged
merged 4 commits into from
Aug 29, 2022

Conversation

jasonamyers
Copy link
Contributor

@jasonamyers jasonamyers commented Aug 25, 2022

Description

This upgrades python to version 3.9 (max supported for lambda by AWS) and adding a lambda layer for wkhtmltopdf.

Type of change

Please delete options that are not relevant.

  • Version Upgrade (non-breaking change which upgrades a dependency)
  • This change requires a documentation update

How Has This Been Tested?

  • Starting localstack, running the mocklambda, and verifying the PDF is created, visible, and proper in the localstack s3 bucket. (See attached foo.pdf)

Related PRs

Signed-off-by: Jason Myers [email protected]

@jasonamyers jasonamyers changed the title Updating python to 3.10, moving to using wkhtmltopdf from a layer AP-1351: Updating python to 3.10, moving to using wkhtmltopdf from a layer Aug 25, 2022
@jasonamyers jasonamyers changed the title AP-1351: Updating python to 3.10, moving to using wkhtmltopdf from a layer AP-1351: Updating python to 3.9, moving to using wkhtmltopdf from a layer Aug 25, 2022
@@ -102,3 +102,7 @@ venv.bak/

*.pdf
*.zip
volume
.DS_Store
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad Mac! bad!

@@ -1,19 +1,35 @@
install:
if [ ! -d dist ]; then virtualenv dist; fi
if [ ! -d dist ]; then python -m venv dist; fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd love to get your thoughts on venvs at some point - i.e. why python -m venv

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I came close to flipping this to poetry. But I use python -m venv since it's shipped in every python distribution while the virtualenv package is going to be deprecated.

Signed-off-by: Jason Myers <[email protected]>
@@ -1,2 +1,50 @@
# strataworker-pdf
Queue based worker for generating PDFs from the Stratasan app into S3
Queue based worker for generating PDFs from the Stratasan app into S3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@jasonamyers jasonamyers merged commit 5006a47 into master Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants