worker: Set docker to use HNSProxy to allow for HNS resolution
This commit is contained in:
parent
457a57739a
commit
f23f361ceb
@ -24,6 +24,21 @@ python3 -m pip install -r requirements.txt
|
|||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
chmod +x wp.sh tlsa.sh
|
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
|
# Pull docker images to save time later
|
||||||
docker pull mysql:5.7 &
|
docker pull mysql:5.7 &
|
||||||
docker pull wordpress:latest &
|
docker pull wordpress:latest &
|
||||||
|
Loading…
Reference in New Issue
Block a user