sonatype-nexus-community/nancy

Running nancy in Azure DevOps requires bash to be present in the image

mrooding opened this issue · 4 comments

Thanks for creating an issue! Please fill out this form so we can be
sure to have all the information we need, and to minimize back and forth.

  • What are you trying to do?

Run nancy's official docker image in an Azure DevOps pipeline

  • How could we solve this issue? (Not knowing is okay!)

ADO requires that any container that you run as part of the pipeline have bash installed in the container. Do you want to add bash to be part of the original image? If not, I'll have to extend the image and maintain my own version

Thank you!

  • Anything else?

cc @bhamail / @DarthHater

bash specifically or just any type of sh?

Unfortunately, bash specifically. It's only a requirement if you use the container as a container resource. I was able to bypass the requirement by running go list .. | docker ... in a normal ADO shell step though

I think it might be preferable to create a new docker image variant type, rather than add it to the current alpine image. Would that be ok?

That would be a perfect solution 👍