1

GCE/GCR에서 도커 이미지에 대해 새로운 트리거 된 빌드를 사용하고 있으며 빌드가 항상 시간 초과로 실패하는 것 같습니다. 고정 이미지가 성공적으로 작성되는 동안 이미지를 GCR로 푸는 데 문제가있는 것으로 보입니다. 로그는 다음과 같습니다 :GCE 빌드가 실패합니다.

7f88c2269765: Pushed 
5d6cbe0dbcf9: Pushed 
e00d971f9164: Pushed 
0dc1f7b171b3: Pushed 
86f67bb3dbbe: Pushed 
ba89c4349922: Pushed 
4c105bb07555: Pushed 
a5fc5fa13b1c: Pushed 
2a2b5addcfa7: Pushed 
4f15d176b911: Pushed 
9685991d91de: Pushed 
5d6cbe0dbcf9: Waiting 
e00d971f9164: Waiting 
0dc1f7b171b3: Waiting 
86f67bb3dbbe: Waiting 
4c105bb07555: Waiting 
ba89c4349922: Waiting 
7f88c2269765: Waiting 
5d6cbe0dbcf9: Preparing 
e00d971f9164: Preparing 
0dc1f7b171b3: Preparing 
86f67bb3dbbe: Preparing 
4c105bb07555: Preparing 
ba89c4349922: Preparing 
7f88c2269765: Preparing 
c70c29a95bd1: Preparing 
a5fc5fa13b1c: Preparing 
4f15d176b911: Preparing 
9685991d91de: Preparing 
2a2b5addcfa7: Preparing 
The push refers to a repository [gcr.io/repo-compute/github-platform/ap] 
Pushing gcr.io/repo-compute/github-platform/ap:8a7ce4a87b24ac8f2c7b00b5719743b7cc81de5b 
PUSH Successfully built e1b3f1ab6e1d Removing intermediate container d696b84e6731 

답변

3

타임 아웃 옵션을 사용 십분에서 기본을 증가 :

- name: 'gcr.io/cloud-builders/docker' 
    args: ['build', '-f=./foo/bar/Dockerfile', '--tag=gcr.io/foo-compute/continuous-deploy/deploy:$COMMIT_SHA', '.'] 
    waitFor: ['-'] 
images: 
    - 'gcr.io/foo-compute/continuous-deploy/deploy:$COMMIT_SHA' 
timeout: '1200s' 

참고 : 제한 시간은 초 단위로 구성되어 https://cloud.google.com/container-builder/docs/api/reference/rest/v1/projects.builds#Build

+0

는 HTTP에서 자세한 내용을 참조하십시오 : // 50727071/container-builder-timing-out –

관련 문제