Skip to content

Commit

Permalink
Release for PGConf US 2016.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Apr 20, 2016
1 parent 810a431 commit 6ec7878
Show file tree
Hide file tree
Showing 11 changed files with 6,667 additions and 158 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
demo/db
demo/repo
demo/diff
demo/.vagrant
.vagrant
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ David Steele is Senior Data Architect at Crunchy Data Solutions, the PostgreSQL

David loves taking on big data challenges. Until recently he was Data Architect at Resonate, an online media company using PostgreSQL to drive its transactional and data warehousing databases. Before that, he helped drive global mobile text messaging at Sybase365.

David's current project is pgBackRest, which will be the subject of his talk.
David's current project is pgBackRest, which will be the subject of this talk.
62 changes: 62 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
Vagrant.configure(2) do |config|
config.vm.box = "boxcutter/ubuntu1404"

config.vm.provider :virtualbox do |vb|
vb.name = "pgbackrest-demo-ubuntu-14.04"
end

# Provision the VM
config.vm.provision "shell", inline: <<-SHELL
# Install db
echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' >> /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
apt-get install -y postgresql-9.5
pg_dropcluster --stop 9.5 main
# Install required Perl modules
apt-get -y --force-yes install libdbd-pg-perl libdbi-perl libnet-daemon-perl libplrpc-perl libterm-readkey-perl
# Install pgBackRest
wget -q -O - https://github.com/pgbackrest/pgbackrest/archive/release/1.00.tar.gz | tar zx -C ~
sudo cp -r ~/pgbackrest-release-1.00/lib/pgBackRest /usr/lib/perl5
sudo find /usr/lib/perl5/pgBackRest -type f -exec chmod 644 {} +
sudo find /usr/lib/perl5/pgBackRest -type d -exec chmod 755 {} +
sudo cp ~/pgbackrest-release-1.00/bin/pgbackrest /usr/bin/pgbackrest
sudo chmod 755 /usr/bin/pgbackrest
sudo mkdir -m 770 /var/log/pgbackrest
sudo chown vagrant:postgres /var/log/pgbackrest
# Create pgpackrest.conf
touch /etc/pgbackrest.conf
chown vagrant:vagrant /etc/pgbackrest.conf
# Make default run directory writable to vagrant
mkdir /var/run/postgresql
chmod 777 /var/run/postgresql
# Install texlive for building slides
apt-get install -y ghostscript
mkdir /root/texlive
wget -q -O - http://mirror.hmc.edu/ctan/systems/texlive/tlnet/install-tl-unx.tar.gz \
| tar zxv -C /root//texlive --strip-components=1
echo "collection-basic 1" >> /root/texlive/texlive.profile
echo "collection-latex 1" >> /root/texlive/texlive.profile
/root/texlive/install-tl -profile=/root/texlive/texlive.profile
echo 'PATH=/usr/local/texlive/2015/bin/x86_64-linux:$PATH' >> /etc/profile
echo 'export PATH' >> /etc/profile
/usr/local/texlive/2015/bin/x86_64-linux/tlmgr install beamer ms pbox epstopdf
SHELL

# Don't share the default vagrant folder
config.vm.synced_folder ".", "/vagrant", disabled: true

# Mount demo path for testing
config.vm.synced_folder "demo", "/demo"

# Mount slides path for building slides
config.vm.synced_folder "slides", "/slides"
end
40 changes: 0 additions & 40 deletions demo/Vagrantfile

This file was deleted.

Loading

0 comments on commit 6ec7878

Please sign in to comment.