Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fails #287

Closed
sg70 opened this issue Nov 28, 2021 · 4 comments · Fixed by #288
Closed

Docker build fails #287

sg70 opened this issue Nov 28, 2021 · 4 comments · Fixed by #288
Labels
area/docker bug Something isn't working

Comments

@sg70
Copy link
Contributor

sg70 commented Nov 28, 2021

Describe the bug

Command

docker build -t pre-commit --build-arg INSTALL_ALL=true . 

Expected behavior

Command builds docker image.

Actually behavior

Builds ends with error.

How can we reproduce it?

git clone https://github.com/antonbabenko/pre-commit-terraform.git
cd pre-commit-terraform
docker build -t pre-commit --build-arg INSTALL_ALL=true . 
build log
#12 34.59     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/usr/local/include/python3.9 -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares__close_sockets.c -o build/temp.linux-x86_64-3.9/deps/c-ares/src/ares__close_sockets.o
#12 34.59     error: command 'gcc' failed: No such file or directory

Environment information

  • OS:

OS: MacOS
OS: Ubuntu 20.04

  • docker info:
command output
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Build with BuildKit (Docker Inc., v0.6.3)
  compose: Docker Compose (Docker Inc., v2.0.0)
  scan: Docker Scan (Docker Inc., v0.8.0)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 20.10.8
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: e25210fe30a0a703442421b0f60afac609f950a3
 runc version: v1.0.1-0-g4144b63
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.10.47-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 1.938GiB
 Name: docker-desktop
 ID: FA3V:NY7I:6FY3:APHV:URB7:CPZB:4WMC:5T4G:VGOQ:6BMP:PE5P:FIC3
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: true
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
@sg70 sg70 added area/docker bug Something isn't working labels Nov 28, 2021
sg70 pushed a commit to sg70/pre-commit-terraform that referenced this issue Nov 28, 2021
@sg70 sg70 mentioned this issue Nov 28, 2021
4 tasks
@yermulnik
Copy link
Collaborator

@sg70 Nice catch. Thanks for looking into fixing this. I requested a change in the PR #288 since the missing packages are required for checkov only. Please let me know whether my request looks sensible.

@sg70
Copy link
Contributor Author

sg70 commented Nov 30, 2021

You're welcome. I updated the PR #288.

@yermulnik
Copy link
Collaborator

Thanks!
I've approved. Need @antonbabenko and @MaxymVlasov to take a look as well.

@kitos9112
Copy link

Ye, indeed. It'd be good to add CI flow into this repository so you guys can test any Docker build issue prior to realising!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docker bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants