Skip to content
Snippets Groups Projects
Commit c8683350 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Add a script that helps installing a DS's Python3 deps into the itango container

parent d4216fdf
No related branches found
No related tags found
No related merge requests found
# Find the path to the device server's requirements.txt file
# on the Docker's host but relative to the /hosthome directory
# in Docker the user's # mounted ${HOME}).
# ATTENTION
# This is assuming that the device server's requirements.txt file
# exists # on the Docker's host in the user's ${HOME} directory.
runThis=$(basename ${0})
runThis=${runThis}/requirements.txt
if [ -f ${runThis} ]; then
myDir=${PWD}
else
myDir=${PWD}/$(dirname ${0})
fi
deviceServerPath=${myDir//${HOME}\//\/hosthome\/}
docker exec -it itango python3 -m pip install -r ${deviceServerPath}/requirements.txt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment