PyRIT icon indicating copy to clipboard operation
PyRIT copied to clipboard

BUG Project fails to build in DevContainer

Open adityapatel1010 opened this issue 4 months ago • 5 comments

Description

After cloning the project and building the the project using the Dockerfile, the build fails during the installation of mssql-tools. There is a following issue:

E: Unable to locate package mssql-tools

Steps/Code to Reproduce

Select the option of "DevContainers: Reopen in Container"

Screenshots

Image

Versions

  • OS: macOS 15.5
  • IDE: VSCode
  • PyRIT version: v0.9.0

adityapatel1010 avatar Jul 26 '25 17:07 adityapatel1010

FYI @bashirpartovi

romanlutz avatar Jul 26 '25 19:07 romanlutz

@adityapatel1010 are you pulling the latest version of the repo? Are you using Docker Desktop?

bashirpartovi avatar Jul 26 '25 19:07 bashirpartovi

Thank you for looking into the issue. Yes @bashirpartovi, I have pulled the latest version of the repo and I have used Docker Desktop for running the DevContainer tool.

adityapatel1010 avatar Jul 27 '25 12:07 adityapatel1010

@adityapatel1010 What's your machine's architecture? ARM?

bashirpartovi avatar Jul 29 '25 15:07 bashirpartovi

@bashirpartovi I am using Macbook M3 with Apple Silicon (ARM64). But, I think there is a problem with export path statement in the Dockerfile 'echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> /etc/profile.d/sqltools.sh', where it is not able to locate the mssql-tools directory.

adityapatel1010 avatar Jul 29 '25 17:07 adityapatel1010