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

Problem with curl version 7 in Dockerfile #506

Closed
seifrajhi opened this issue Apr 19, 2023 · 1 comment · Fixed by #507
Closed

Problem with curl version 7 in Dockerfile #506

seifrajhi opened this issue Apr 19, 2023 · 1 comment · Fixed by #507
Assignees
Labels
area/docker bug Something isn't working

Comments

@seifrajhi
Copy link

Describe the bug

I am trying to install the hooks using docker build from scratch the image method in an EC2 instance, but I faced an error.

How can we reproduce it?

When I run below command it fails, because of curl version in Dockerfile

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

Screenshot 2023-04-19 at 22 45 02

Environment information

  • OS: Amazon Linux
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
SUPPORT_END="2028-03-01"
  • docker info:
command output
Client:
 Context:    default
 Debug Mode: false

Server:
 Containers: 2
  Running: 0
  Paused: 0
  Stopped: 2
 Images: 2
 Server Version: 20.10.17
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 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: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f
 runc version: 5fd4c4d144137e991c4acebb2146ab1483a97925
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 6.1.21-1.45.amzn2023.x86_64
 Operating System: Amazon Linux 2023
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 3.816GiB
 Name: ip-172-31-38-240.eu-west-3.compute.internal
 ID: 2ZIU:ESN5:HNC2:DGB2:CGPI:6EFG:6XKB:BFRT:ODKC:2XVY:UXSF:TCZU
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

PS: changing to curl 8 resolves the issue...

@seifrajhi seifrajhi added area/docker bug Something isn't working labels Apr 19, 2023
@seifrajhi seifrajhi changed the title Proble Problem with curl version 7 in Dockerfile Apr 19, 2023
@MaxymVlasov MaxymVlasov self-assigned this Apr 20, 2023
@antonbabenko
Copy link
Owner

This issue has been resolved in version 1.77.3 🎉

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
3 participants