cert-manager/hack/test/setup-boulder.sh
James Munnelly 1f278d659b Refactor e2e setup into scripts. Speed up e2e tests.
Build images whilst services are starting

Exit on setup boulder errors

Install nsenter

Don't build nsenter

Turn up e2e pod verbosity

Set pullPolicy IfNotPresent on HTTP challenge solver
2017-10-16 12:58:47 +01:00

31 lines
688 B
Bash
Executable File

#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
BOULDER_REPO="github.com/letsencrypt/boulder"
BOULDER_URL="http://127.0.0.1:4000"
echo "Fetching ${BOULDER_REPO}"
go get -d github.com/letsencrypt/boulder || true
echo "Retrieved boulder repository"
cd "${GOPATH}/src/${BOULDER_REPO}"
# Modify boulder configuration
sed -i 's/FAKE_DNS: 127.0.0.1/FAKE_DNS: 10.0.0.10/' docker-compose.yml
sed -i 's/127.0.0.1:8053/10.0.0.10:53/' test/config/va.json
sed -i 's/5002/80/' test/config/va.json
# TODO: set ratelimits
function start {
if ! docker-compose up; then
echo "Error running boulder"
exit 1
fi
}
start &
echo "Started boulder process in background"