Skip to content

Output generated from Tern has 0 bytes #1249

@VenkatTechnologist

Description

@VenkatTechnologist

Describe the bug
My container has a two line Python program whose content is this:

import numpy
print ("Hello World!")

The Docker image for the program is:
REPOSITORY TAG IMAGE ID CREATED SIZE
ternd latest d6bd8a7ee130 25 minutes ago 238MB
helloworld 0.0.1 7483191c710c 25 hours ago 1.1GB <-------

I cloned tern and then ran the following command:
$ ./docker_run.sh ternd report -f json -i helloworld:0.0.1 > output.txt

The resulting output.txt is empty:

$ ls -al output.txt
-rw-r--r-- 1 vrama 197609 0 Feb 11 21:30 output.txt

To Reproduce
Please follow similar steps as explained above.

Error in terminal

Please see above

Expected behavior
I would expect output.txt to contain SBOM details including numpy's.

Environment you are running Tern on
Enter all that apply

  • Tern image built on Docker: ternd latest d6bd8a7ee130 32 minutes ago 238MB
  • Operating System: Windows 11
  • Vagrant file: NA
  • Docker version 25.0.2, build 29cf629
  • Python 3.12.1
  • Cloud environment: NA

Please attach files if they exist
NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions