rules_docker icon indicating copy to clipboard operation
rules_docker copied to clipboard

Dockerfile_build timed out issue

Open lhviet opened this issue 3 years ago • 3 comments

🐞 bug report

Hi, when trying to build a Dockerfile with Bazel, I encounter the issue of Time out.

Affected Rule

https://github.com/bazelbuild/rules_docker/blob/master/contrib/dockerfile_build.bzl#L64-L76

Is this a regression?

N/A

Description

ERROR: An error occurred during the fetch of repository 'opencti-platform-image':
Traceback (most recent call last):
File "/home/runner/.cache/bazel/_bazel_runner/d8466fb45ee98180472924375306ec29/external/io_bazel_rules_docker/contrib/dockerfile_build.bzl", line 83, column 13, in _impl
fail("docker build command failed: {} ({})".format(
Error in fail: docker build command failed: Timed out (/usr/bin/docker build --no-cache -f /home/runner/work/opencti/opencti/opencti/opencti-platform/Dockerfile -t opencti-platform-image:dockerfile_image /home/runner/work/opencti/opencti/opencti/opencti-platform)
ERROR: /home/runner/work/opencti/opencti/WORKSPACE:113:17: fetching dockerfile_image rule //external:opencti-platform-image: Traceback (most recent call last):
File "/home/runner/.cache/bazel/_bazel_runner/d8466fb45ee98180472924375306ec29/external/io_bazel_rules_docker/contrib/dockerfile_build.bzl", line 83, column 13, in _impl
fail("docker build command failed: {} ({})".format(
Error in fail: docker build command failed: Timed out (/usr/bin/docker build --no-cache -f /home/runner/work/opencti/opencti/opencti/opencti-platform/Dockerfile -t opencti-platform-image:dockerfile_image /home/runner/work/opencti/opencti/opencti/opencti-platform)
ERROR: /home/runner/work/opencti/opencti/opencti/BUILD.bazel:17:16: //opencti:opencti-platform-image depends on @opencti-platform-image//image:dockerfile_image.tar in repository @opencti-platform-image which failed to fetch. no such package '@opencti-platform-image//image': docker build command failed: Timed out (/usr/bin/docker build --no-cache -f /home/runner/work/opencti/opencti/opencti/opencti-platform/Dockerfile -t opencti-platform-image:dockerfile_image /home/runner/work/opencti/opencti/opencti/opencti-platform)
ERROR: Analysis of target '//opencti:all_prod_images' failed; build aborted:
INFO: Elapsed time: 623.601s

lhviet avatar Nov 22 '22 18:11 lhviet

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_docker!

github-actions[bot] avatar May 22 '23 02:05 github-actions[bot]

I have came across the same issue...

mc256 avatar May 24 '23 17:05 mc256