Skip to content

Docker image building seems to run indefinitely on extern dockerfiles #1245

Description

@rguilloteau

Describe the bug
The Docker image building phase seems to be blocked indefinitely when I run tern on an extern Dockerfile. I interrupted the software after 5min.

To Reproduce
Steps to reproduce the behavior:

romain$ cp tern/samples/photon_git/Dockerfile .
romain$ tern report -d Dockerfile
2023-12-11 14:55:14,758 - DEBUG - __main__ - Starting...
2023-12-11 14:55:14,758 - DEBUG - prep - Setting up...
2023-12-11 14:55:14,801 - DEBUG - rootfs - Running command: sudo chmod +x /home/viveris/.local/lib/python3.10/site-packages/tern/tools/fs_hash.sh
2023-12-11 14:55:14,805 - DEBUG - run - Parsing Dockerfile...
2023-12-11 14:55:14,806 - DEBUG - run - Building Docker image with Dockerfile: Dockerfile

Error in terminal

No error just a blocked software

Expected behavior
I expect a SBOM ouput in ther terminal. The same as when I ran the example with this command

tern report -d samples/photon_git/Dockerfile

Environment you are running Tern on
Enter all that apply

  • Tern version 2.12.1
  • Linux Mint 21.2
  • 3.10.12

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions