added docker versions of build scripts

This commit is contained in:
zhoob2004 2022-05-18 14:09:04 -07:00 committed by rusefi
parent 0f401257e9
commit a6e6e7dc02
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
if [ ! -f hellen-one/git_scripts ]; then
echo "No submodules?"
git submodule update --init --recursive
fi
cd hellen-one
docker build -t hellen-one .

20
step2_copy_with_docker.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
if [ ! -f hellen-one/git_scripts ]; then
echo "No submodules?"
git submodule update --init --recursive
fi
# This command is me trying to be fancy
# '--entrypoint python3' skips the normal container CMD and starts python3 instead
# using the parameters specified after 'hellen-one'
#
# -v "$(pwd)":/${PWD##*/} simply mounts the current working directory
# at /<the name of the current directory>
#
# '/${PWD##*/}' is doing the $pwd basename thing again
docker run --rm -it --entrypoint python3 -v "$(pwd)":/${PWD##*/} hellen-one ./bin/copy_from_Kicad.py "frames:alphax_" "/${PWD##*/}" "../../gerber" "2ch" "c"
echo "Done!"

View File

@ -0,0 +1,11 @@
#!/bin/bash
if [ ! -f hellen-one/git_scripts ]; then
echo "No submodules?"
git submodule update --init --recursive
fi
# See step2_copy_with_docker.sh for explanation of the following command
docker run --rm -it --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"