Bulding GPG on Amazon linux from source

Bulding a newer version of GPG on AL2 Amazon linux 2, based on centos 7 is using a older version GPG making it incompatible with some projects see this thread. And so one solution, is to build a newer version of GPG from source. Here is the github repo: FROMamazonlinuxRUN yum -y install bzip2 wget gcc make tarCOPY install_gpg.sh .RUN chmod +x install_gpg.sh && ./install_gpg.shENV PATH="/var/src/gnupg2/gnupg-2.2.15/dest/bin:$PATH"And the script compiling from source:...

August 6, 2022 · 1 min · Nolan

PostgreSQL in Docker

Running DB from a dump in seconds I will take this free dataset from postgresql website. docker run -d --name my_db \ -v /Users/nolan/Downloads/french-towns-communes-francaises-1.0/french-towns-communes-francaises.sql:/docker-entrypoint-initdb.d/create_table.sql \ -p 54320:5432 -e POSTGRES_PASSWORD=my_password -e POSTGRES_USER=nolan postgres Connect to DB pgcli -h localhost -p54320 -Unolan nolan@localhost:nolan> SELECT count(*) FROM towns where name like 'Mont%'; Result: count 826

September 21, 2021 · 1 min · Nolan