This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POSTGRES_VERSION="15" | |
docker run --name local_postgres -e POSTGRES_PASSWORD="password-in-local" -p 5432:5432 -d "postgres:$POSTGRES_VERSION" | |
# if we need to mount a local volume to setup a backup | |
docker run --name local_postgres -e POSTGRES_PASSWORD="password-in-local" -p 5432:5432 -d -v .:/var/task/shared_volume "postgres:$POSTGRES_VERSION" | |
# Then get a bash command line to setup the database | |
docker exec -it local_postgres bash | |
# Inside the container we can use the tools of postgres like |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find \(-name "*.js" -o -name "*.mjs"\) -not -path "./node_modules" -exec sha256sum {} \; | sort > hash-list.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM amazon/aws-lambda-python:3.12 | |
# If your system work trough proxy or VPN and got errors from the update like 'SSL certificate problem: unable to get local issuer certificate' | |
# add your certificates at using the following lines | |
# COPY my-bundle.pem /etc/pki/ca-trust/source/anchors/my-bundle.pem | |
# RUN update-ca-trust | |
#RUN dnf -y update && dnf -y upgrade && \ | |
# dnf -y install libffi-devel postgresql-devel postgresql-libs zip rsync wget openssl openssl-devel gcc |