modified docker commands to run as current user instead of root

This commit is contained in:
zhoob2004 2022-05-18 15:41:56 -07:00
parent eba4269829
commit 946b25f760
2 changed files with 2 additions and 2 deletions

View File

@ -15,6 +15,6 @@ fi
#
# '/${PWD##*/}' is doing the $pwd basename thing again
docker run --rm -t --entrypoint python3 -v "$(pwd)":/${PWD##*/} hellen-one ./bin/copy_from_Kicad.py "frames:alphax_" "/${PWD##*/}" "../../gerber" "2ch" "c"
docker run --rm -t --user $(id -u):$(id -g) --entrypoint python3 -v "$(pwd)":/${PWD##*/} hellen-one ./bin/copy_from_Kicad.py "frames:alphax_" "/${PWD##*/}" "../../gerber" "2ch" "c"
echo "Done!"

View File

@ -7,5 +7,5 @@ fi
# See step2_copy_with_docker.sh for explanation of the following command
docker run --rm -t --entrypoint bash -v "$(pwd)":/${PWD##*/} hellen-one ./bin/create_board_with_prefix.sh "alphax_" "/${PWD##*/}" "2ch" "c" "bom_replace_alphax-2ch-c.csv " "0,4"
docker run --rm -t --user $(id -u):$(id -g) --entrypoint bash -v "$(pwd)":/${PWD##*/} hellen-one ./bin/create_board_with_prefix.sh "alphax_" "/${PWD##*/}" "2ch" "c" "bom_replace_alphax-2ch-c.csv " "0,4"