1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +02:00

Use minio as local S3 emulator in documentation.

The documentation was relying on a ScalityS3 container built for testing which wasn't very transparent.  Instead, use the stock minio container and configure it in the documentation.

Also, install certificates and CA so that TLS verification can be enabled.
This commit is contained in:
David Steele
2019-05-27 07:37:20 -04:00
parent a474ba54c5
commit 3e1b06acaa
13 changed files with 188 additions and 53 deletions
-16
View File
@@ -63,22 +63,6 @@ Vagrant.configure(2) do |config|
apt-get install -y devscripts build-essential lintian git lcov cloc txt2man debhelper libssl-dev zlib1g-dev libperl-dev \
libxml2-dev liblz4-dev
#---------------------------------------------------------------------------------------------------------------------------
echo 'Install AWS CLI' && date
apt-get install -y python-pip
pip install --upgrade awscli
# Configure AWS CLI
sudo -i -u vagrant aws configure set region us-east-1
sudo -i -u vagrant aws configure set aws_access_key_id accessKey1
sudo -i -u vagrant aws configure set aws_secret_access_key verySecretKey1
# Create test alias for AWS CLI
echo '' >> /home/vagrant/.profile
echo '# Test alias for AWS CLI' >> /home/vagrant/.profile
echo 'alias s3-test="export PYTHONWARNINGS=ignore && aws s3 --endpoint-url=https://172.17.0.2 --no-verify-ssl"' \
>> /home/vagrant/.profile
#---------------------------------------------------------------------------------------------------------------------------
echo 'Install Devel::Cover' && date
dpkg -i /backrest/test/package/u18-libdevel-cover-perl_1.29-2_amd64.deb