Commit 7b160c4a authored by ymir's avatar ymir

test before create link

parent 1827d279
Pipeline #105392 canceled with stages
in 6 seconds
......@@ -22,6 +22,8 @@ tar -xzvf /tmp/neuralnetworktrainercli.tar.gz -C /tmp
mv /tmp/neuralnetworktrainercli/help/neuralnetworktrainercli.sh /usr/local/lib/python3.6/dist-packages/neuralnetworktrainercli/help
# set file as executable & reference in path
chmod +x /usr/local/lib/python3.6/dist-packages/neuralnetworktrainercli/neuralnetworktrainercli.py
ln -s /usr/local/lib/python3.6/dist-packages/neuralnetworktrainercli/neuralnetworktrainercli.py /usr/local/bin/neuralnetworktrainercli
if [[ ! -e /usr/local/bin/neuralnetworktrainercli ]]; then
ln -s /usr/local/lib/python3.6/dist-packages/neuralnetworktrainercli/neuralnetworktrainercli.py /usr/local/bin/neuralnetworktrainercli
fi
# remove temporary files
rm -R /tmp/neuralnetworktrainercli*
# in container, as ROOT, check status (start/stop if needed)
neuralNetworkTrainerServiceDaemon status
# in container, as GUEST, call service (same port in every environement)
curl -v http://localhost:5000/neuralnetwork/trainer/perceptron
curl -v http://localhost:80/neuralnetwork/trainer/perceptron
curl -v http://localhost/neuralnetwork/trainer/perceptron
# outside container, call service (adapt port regarding environement : dev=>8001, stg=>8002, prd=>8003)
curl -v http://localhost:#PORT#/neuralnetwork/trainer/perceptron
curl -v http://yggdrasil:#PORT#/neuralnetwork/trainer/perceptron
#######################################
# in container, as GUEST
neuralnetworktrainercli --help
neuralnetworktrainercli read perceptron
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment