Create /etc/resolver when setting up dinghy-proxy

Seems that directory doesn't always exist on MacOS

flag=none

test plan:
- Check whether /etc/resolver exists; if it does (and is empty), remove it
  - If it's not empty, back up its contents
- Run docker_dev_setup.sh
- Confirm that it succeeds with the Dinghy setup


Change-Id: I2958a798907c2e450645ee251348ef79e499f657
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/269085
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Jon Scheiding <jon.scheiding@instructure.com>
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>
This commit is contained in:
Jon Scheiding 2021-07-14 09:58:35 -04:00
parent 6179f337a4
commit 1f154881e8
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ function setup_dinghy_proxy {
--name http-proxy \
codekitchen/dinghy-http-proxy
sudo mkdir -p /etc/resolver
echo 'nameserver 127.0.0.1' | sudo tee /etc/resolver/docker > /dev/null
echo 'port 19322' | sudo tee -a /etc/resolver/docker > /dev/null
fi