worker: Set docker to use HNSProxy to allow for HNS resolution

This commit is contained in:
Nathan Woodburn 2023-08-25 22:34:50 +10:00
parent 457a57739a
commit f23f361ceb
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -24,6 +24,21 @@ python3 -m pip install -r requirements.txt
cp .env.example .env
chmod +x wp.sh tlsa.sh
# Add proxy to docker
mkdir ~/.docker
echo """{
\"proxies\": {
\"default\": {
\"httpProxy\": \"http://proxy.hnsproxy.au:80\",
\"httpsProxy\": \"https://proxy.hnsproxy.au:443\",
\"noProxy\": \"localhost\"
}
}
}""" > ~/.docker/config.json
# Restart docker
sudo systemctl restart docker
# Pull docker images to save time later
docker pull mysql:5.7 &
docker pull wordpress:latest &