diff --git a/.github/actions/docker-run/action.yml b/.github/actions/docker-run/action.yml index 898b4bc3ad8..49f47f0e825 100644 --- a/.github/actions/docker-run/action.yml +++ b/.github/actions/docker-run/action.yml @@ -60,10 +60,15 @@ runs: password: ${{ inputs.docker_password }} registry: ghcr.io image: ghcr.io/${{ github.repository }}/${{ inputs.docker_image }}:${{ env.IMAGE_TAG }} - # The most important option below is `--rm`. The machines will fill up with containers. + # The most important option below is `--rm`. Otherwise, the machines will fill up with undeleted containers. + # The mounting of passwd, shadow, and bashrc is required in order for the correct file permissions + # for newly created files. options: | -u ${{ env.RUNNER_UID }}:${{ env.RUNNER_GID }} --rm + -v /etc/passwd:/etc/passwd:ro + -v /etc/shadow:/etc/shadow:ro + -v /etc/bashrc:/etc/bashrc:ro -v ${{ github.workspace }}:${{ github.workspace }} --net=host ${{ inputs.docker_opts }} @@ -73,10 +78,6 @@ runs: -w ${{ github.workspace }} run: | if [ ${{ inputs.install_wheel }} ]; then - cp -r * /usr/app/ - cd /usr/app/ - export PYTHONPATH=/usr/app/ - rm -rf tt_metal tt_eager WHEEL_FILENAME=$(ls -1 *.whl) pip3 install --user $WHEEL_FILENAME fi