Skip to content
Snippets Groups Projects
Commit 7fac9ba5 authored by Jan David Mol's avatar Jan David Mol
Browse files

Removed ad-hoc requirements installation as we now use our custom docker images for itango

parent e110160e
No related branches found
No related tags found
No related merge requests found
if [ ${#} -ne 1 ]; then
echo "The 1st parameter must be the requirements.txt file."
exit -1
fi
# 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.
requirements=$(basename ${1})
echo ${requirements}
if [ -f ${requirements} ]; then
myDir=${PWD}
else
myDir=${PWD}/$(dirname ${1})
fi
requirementsPath=${myDir//${HOME}\//\/hosthome\/}
docker exec -it itango python3 -m pip install -r ${requirementsPath}/${requirements}
opcua >= 0.98.9
astropy
# Find the path to this file that is relative to the
# /hosthome directory (in Docker the user's mounted ${HOME}).
# ATTENTION
# This is assuming that the this file exists
# on the Docker's host in the user's ${HOME} directory.
runThis=$(basename ${0})
if [ -f ${runThis} ]; then
myDir=${PWD}
else
myDir=${PWD}/$(dirname ${0})
fi
requirements=${runThis%%.sh}-requirements.txt
thisScriptPath=${myDir/${HOME}/\/hosthome}
if [ -f ${myDir}/${requirements} ]; then
echo "Installing required Python modules with pip3..."
docker exec -it itango pip3 install -r ${thisScriptPath}/${requirements}
echo "Installing required Python modules with pip3 done."
fi
docker exec -it itango itango3
#!/bin/bash
exec docker exec -it itango itango3
docker exec -it itango /bin/bash
#!/bin/bash
exec docker exec -it itango /bin/bash
......@@ -36,11 +36,5 @@ if [ -f ${runThis} ]; then
else
myDir=${PWD}/$(dirname ${deviceServer})
fi
deviceServerPath=${myDir/${HOME}/\/hosthome}
if [ -f ${myDir}/requirements.txt ]; then
echo "Installing required Python modules with pip3..."
docker exec -it itango pip3 install -r ${deviceServerPath}/requirements.txt
echo "Installing required Python modules with pip3 done."
fi
docker exec -it itango python3 ${deviceServerPath}/${runThis} ${instance} ${@}
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