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

Don't get licenses when running docker in Azure Pipeline #1018

Open
chkrause opened this issue Jan 18, 2024 · 1 comment
Open

Don't get licenses when running docker in Azure Pipeline #1018

chkrause opened this issue Jan 18, 2024 · 1 comment

Comments

@chkrause
Copy link

I used docker to run the license_finder.

When I set it up locally on my machine all works fine and I get the report as expected with all the packages inside the project and also all known licenses are detected.
When I run the same thin inside an azure pipeline I only get the packages but all the licenses are recognized as unknown.

I already checked the following things:

  • Version of licences_finder is the same: yes
  • Does the docker have access to the internet: yes
  • npm versions are the same: yes

What I couldn't find out: Where do I find detail log files of license_finder to look at these?
Do you have any idea what's going wrong here?

docker pull licensefinder/license_finder
docker run -it -d --name license_finder -v /home/vsts/work/1/self:/scan -v /home/vsts/work/1/config:/config licensefinder/license_finder
docker exec -t -w /scan license_finder bash -c "source ~/.bash_profile && license_finder report --decisions-file=/config/dependency_decisions.yml --format html > report.html"

Local results:
image

Azure pipeline results:
image

@cf-gitbot
Copy link
Collaborator

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

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

No branches or pull requests

3 participants