bridgecrewio / yor

Extensible auto-tagger for your IaC files. The ultimate way to link entities in the cloud back to the codified resource which created it.
https://www.yor.io
Apache License 2.0
808 stars 123 forks source link

Docker image broken since version 0.1.181 #421

Closed gfaugere closed 1 year ago

gfaugere commented 1 year ago

Describe the bug When trying to use the docker image, the yor executable fails to run with an error : cannot execute: required file not found. (This feels like missing libraries to me, but I've tried to dig by myself and did not figure it out)

To Reproduce Steps to reproduce the behavior:

  1. Open a terminal on a machine with docker installed
  2. Run cli command docker run --tty --rm bridgecrew/yor:0.1.181 --version (or any version above)
  3. See error

Expected behavior The yor executable does its wonders and add tags to my tf projects (or a least prints its version)

Desktop

On Ubuntu 22.04.3 :

$ docker run --tty --rm bridgecrew/yor:0.1.181 --version
/entrypoint.sh: line 7: /usr/bin/yor: cannot execute: required file not found
$ docker run --tty --rm bridgecrew/yor:0.1.180 --version
yor version 0.1.180

Also tried in GitLab public CI/CD environment:

test:
  image:
    name: bridgecrew/yor:0.1.181
    entrypoint: [""]
  script:
    - yor --version
[...]
$ yor --version
/bin/bash: line 158: /usr/bin/yor: cannot execute: required file not found
[...]

Let me know if I can help track this down somehow (or if I'm a fool and using the image in an incorrect way)

gfaugere commented 1 year ago

That was quick! Thanks guys :)