Sign inSign up

scadip/psycopg2

By scadip

•Updated over 1 year ago

Amazonlinux docker image. It allow us to generate libraries for aws lambda layers.

Image
Databases & storage
0

144

scadip/psycopg2 repository overview

⁠To create psycopg2 AWS lambda layers

  • This example works for python-version 3.11 in aws lambda Runtime, for other version update python-version in the command
  • The zipped layer can be found in your current directory/psycopg2-layer/psycopg2-layer.zip
docker run --name psycopg-launcher --rm -ti \
--mount src="$(pwd)",target=/data,type=bind scadip/psycopg2:3.11 bash -c "mkdir -p /data/psycopg2-layer/python && cd /data/psycopg2-layer/python && pip3 install --platform manylinux2014_x86_64 --target . --python-version 3.11 --only-binary=:all: psycopg2-binary && cd .. && zip -r psycopg2-layer.zip python"


Tag summary

Content type

Image

Digest

sha256:0f2f9e7f7…

Size

943.3 MB

Last updated

over 1 year ago

docker pull scadip/psycopg2:3.11