This file contains 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 ubuntu:xenial | |
RUN set -x \ | |
&& apt-get update \ | |
&& env DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes install \ | |
eatmydata \ | |
pbuilder \ | |
devscripts \ | |
devscripts-el \ | |
aptitude \ |
This file contains 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
#!/bin/sh | |
# Add updated software from homebrew | |
export CFLAGS="-I/usr/local/include" | |
export LDFLAGS="-L/usr/local/lib" | |
for pkg in openssl readline gdbm; do | |
export CFLAGS="-I$(brew --prefix $pgk)/include $CFLAGS" | |
export LDFLAGS="-L$(brew --prefix $pkg)/lib $LDFLAGS" | |
done |
This file contains 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
#!/usr/bin/env python | |
from __future__ import print_function | |
import os | |
import sys | |
import time | |
from barman.lockfile import LockFile, LockFileBusy | |
if __name__ == '__main__': |
This file contains 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 __future__ import print_function | |
import sys | |
import psycopg2 | |
import psycopg2.extras | |
conn = psycopg2.connect( | |
'host=localhost user=postgres port=5495', | |
connection_factory=psycopg2.extras.LogicalReplicationConnection) | |
cur = conn.cursor() | |
replication_options = { |
This file contains 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
#!/bin/sh | |
# assumes apt.postgresql.org repository is already configured | |
TMP_PG_COMMON_CONF=$(mktemp -d) | |
echo create_main_cluster = false > "$TMP_PG_COMMON_CONF"/createcluster.conf | |
export PGSYSCONFDIR="$TMP_PG_COMMON_CONF" | |
apt-get install postgresql-12 | |
unset PGSYSCONFDIR | |
rm -fr "$TMP_PG_COMMON_CONF" |