27 lines
691 B
Bash
Executable File
27 lines
691 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
BOULDER_REPO="github.com/letsencrypt/boulder"
|
|
|
|
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
|
|
|
|
docker-compose up &
|
|
|
|
while ! curl http://localhost:4000/ > /dev/null 2>&1 ; do
|
|
echo "Waiting for boulder API to be available..."
|
|
sleep 5
|
|
done
|
|
|
|
echo "Boulder API now available at http://localhost:4000/" |