mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
Update the VM setup, use sid to build the debian package.
This commit is contained in:
parent
be9abe48fe
commit
0e924fa829
17
Vagrantfile
vendored
17
Vagrantfile
vendored
@ -9,10 +9,27 @@ Vagrant.configure("2") do |config|
|
||||
config.vm.define "wheezy" do |wheezy|
|
||||
wheezy.vm.box = "wheezy64"
|
||||
|
||||
config.vm.provision :file do |file|
|
||||
file.source = 'conf/gpg-agent.conf'
|
||||
file.destination = '/home/vagrant/.gnupg/gpg-agent.conf'
|
||||
end
|
||||
|
||||
config.vm.provision :file do |file|
|
||||
file.source = 'conf/gpg.conf'
|
||||
file.destination = '/home/vagrant/.gnupg/gpg.conf'
|
||||
end
|
||||
|
||||
config.vm.provision :file do |file|
|
||||
file.source = 'conf/devscripts'
|
||||
file.destination = '/home/vagrant/.devscripts'
|
||||
end
|
||||
|
||||
config.vm.provision "shell" do |s|
|
||||
s.path = "bootstrap-debian.sh"
|
||||
s.privileged = false
|
||||
end
|
||||
|
||||
config.vm.network :forwarded_port, guest: 4505, host: 4505
|
||||
end
|
||||
|
||||
config.vm.define "centos" do |centos|
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! -f /etc/apt/sources.list.old ]
|
||||
then
|
||||
sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
|
||||
sudo cp /vagrant/conf/sources.list /etc/apt/sources.list
|
||||
fi
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get dist-upgrade -y
|
||||
|
||||
cat /vagrant/conf/bashrc.sh >> ~/.bashrc
|
||||
|
||||
# PostgreSQL
|
||||
sidsrc=/etc/apt/sources.list.d/sid-src.list
|
||||
echo "deb-src http://ftp.fr.debian.org/debian/ sid main" | sudo tee $sidsrc
|
||||
@ -21,7 +32,8 @@ sudo apt-get install -y postgresql-9.3 postgresql-contrib-9.3 \
|
||||
sbcl \
|
||||
git patch unzip \
|
||||
devscripts pandoc \
|
||||
libsqlite3-dev
|
||||
libsqlite3-dev \
|
||||
gnupg gnupg-agent
|
||||
|
||||
sudo DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get install -y --allow-unauthenticated mariadb-server
|
||||
|
||||
9
conf/bashrc.sh
Normal file
9
conf/bashrc.sh
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
# GnuPG Agent
|
||||
export GPG_TTY=`tty`
|
||||
eval "$(gpg-agent --daemon)"
|
||||
|
||||
# DEBIAN
|
||||
export DEBEMAIL="dim@tapoueh.org"
|
||||
export DEBFULLNAME="Dimitri Fontaine"
|
||||
export DEBSIGN_KEYID="60B1CB4E"
|
||||
3
conf/devscripts
Normal file
3
conf/devscripts
Normal file
@ -0,0 +1,3 @@
|
||||
DEBEMAIL="dim@tapoueh.org"
|
||||
DEBFULLNAME="Dimitri Fontaine"
|
||||
DEBSIGN_KEYID="60B1CB4E"
|
||||
5
conf/gpg-agent.conf
Normal file
5
conf/gpg-agent.conf
Normal file
@ -0,0 +1,5 @@
|
||||
# Keyboard control
|
||||
no-grab
|
||||
|
||||
# PIN entry program
|
||||
pinentry-program /usr/bin/pinentry-curses
|
||||
7
conf/gpg.conf
Normal file
7
conf/gpg.conf
Normal file
@ -0,0 +1,7 @@
|
||||
default-key 60B1CB4E
|
||||
keyserver hkp://keys.gnupg.net
|
||||
use-agent
|
||||
|
||||
personal-digest-preferences SHA512
|
||||
cert-digest-algo SHA512
|
||||
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
|
||||
5
conf/sources.list
Normal file
5
conf/sources.list
Normal file
@ -0,0 +1,5 @@
|
||||
deb http://ftp.fr.debian.org/debian sid main non-free contrib
|
||||
deb-src http://ftp.fr.debian.org/debian sid main non-free contrib
|
||||
|
||||
# deb http://security.debian.org/ wheezy/updates main contrib non-free
|
||||
# deb-src http://security.debian.org/ wheezy/updates main contrib non-free
|
||||
Loading…
x
Reference in New Issue
Block a user