Open gpsaggese opened 5 months ago
I don't think we rely on dind anywhere at this point (maybe only in the GH actions, since they require dind to avoid containers spawned on the machine itself?).
I would start by:
198 # Check docker-in-docker.
199 check_repo = os.environ.get("AM_REPO_CONFIG_CHECK", "True") != "False"
200 if check_repo:
206 if hserver.is_inside_ci():
207 # dind should be supported on Mac, dev_ck, and GH Actions.
208 assert has_dind, (
209 f"Expected privileged mode: has_dind={has_dind}\n"
210 + hserver.setup_to_str()
211 )
214 else:
215 only_warning = True
216 _raise_invalid_host(only_warning)
217 return False
218 else:
Also let's start moving this code in hserver
so we reduce the copy-paste in repo_config.
Note that this check should be mirrored in all the repo
So this change is a bit tricky
In repo_config.py, you can set check_repo = False
I'll file another bug to make this check optional.
Originally posted by @gpsaggese in https://github.com/sorrentum/sorrentum/issues/665#issuecomment-1962398137