cirruslabs / macos-image-templates

MIT License
207 stars 57 forks source link

Use host's DNS servers #87

Closed edigaryev closed 1 year ago

edigaryev commented 1 year ago

Might help the users who are having issues with local DNS/VPN servers.

See https://github.com/cirruslabs/orchard/issues/92.

JulianH commented 1 year ago

Hi @edigaryev,

this issue is a blocker for us, as our gitlab is resolved only by an internal DNS server. Is there any chance, to publish a new xcode-14 image containing this fix?

Thank you very much!

edigaryev commented 1 year ago

Is there any chance, to publish a new xcode-14 image containing this fix?

Pinging @fkorotkov.

fkorotkov commented 1 year ago

@JulianH you can reset the setting by running the following command first thing in your CI script:

sudo networksetup -setdnsservers Ethernet "Empty"

Will that work for you?

JulianH commented 1 year ago

Hi @fkorotkov,

thanks for your quick reply. I want to use that images in the gitlab-tart-executor and the first step is, to clone the repository, which fails due to not able resolving the gitlab address. If i manually run the vm, execute the script, then i can clone the repository, but not part of the Gitlab CI build job, unfortunately.

fkorotkov commented 1 year ago

Can you try pre_get_sources_script?

We usually update images on Saturdays to minimize impact of image distribution. If pre_get_sources_script doesn't work for you, we'll rebuild the latest Xcode 14+ image later this week.

JulianH commented 1 year ago

Hi @fkorotkov, thank you very much for this nice workaround, it is working 🚀