From f23f361cebb8466ac372de2c23a91535cc73ec6e Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 25 Aug 2023 22:34:50 +1000 Subject: [PATCH] worker: Set docker to use HNSProxy to allow for HNS resolution --- worker/install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/worker/install.sh b/worker/install.sh index 04ca556..d6fad52 100644 --- a/worker/install.sh +++ b/worker/install.sh @@ -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 &