2022. 7. 11. 15:53ㆍ서버 프로그래밍
간만에 macOS를 빌드 머신으로 쓰기 위해 gitlab CI/CD와 연동하면서 삽질 중...
일단 빌드 머신으로 사용할 장비에 최신 버전의 Xcode를 설치하는 것은 기본.
https://ma.ttias.be/mac-os-xcrun-error-invalid-active-developer-path-missing-xcrun/
1) gitlab CD/CD에서 macOS에 설치된 docker로 gitlab-runner를 실행시키려고 할때, docker 접근 권한 오류 발생
Experimental Features
On the Experimental Features page, you can specify whether or not to enable experimental features.
Experimental features provide early access to future product functionality. These features are intended for testing and feedback only as they may change between releases without warning or can be removed entirely from a future release. Experimental features must not be used in production environments. Docker does not offer support for experimental features.
https://docs.docker.com/desktop/mac/
2) gitlab-runner 실행 시, gitlab의 repository에서 소스 코드를 가져오지 못하는 문제 발생
This is working for me without define network in docker compose. Just add a extra_hosts record in gitlab-runner config just likes we add A record in other OS.
sudo vim /etc/gitlab-runner/config.toml
[runners.docker]
tls_verify = false
image = "alpine:latest"
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
extra_hosts = ["xxx.xxx.com.cn:192.168.10.110"]
https://stackoverflow.com/questions/50325932/gitlab-runner-docker-could-not-resolve-host