From 55a0db6202e27d50d04fb24ef22514c9d38aa590 Mon Sep 17 00:00:00 2001 From: Brian Broll Date: Thu, 9 Apr 2020 09:06:28 -0500 Subject: [PATCH] Use tf from conda for worker machines. Fixes #1620 --- .deployment/dev-entrypoint.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.deployment/dev-entrypoint.sh b/.deployment/dev-entrypoint.sh index 3a5a17155..bcf0141f8 100755 --- a/.deployment/dev-entrypoint.sh +++ b/.deployment/dev-entrypoint.sh @@ -1,5 +1,10 @@ #!/bin/bash -# Remove pypi tensorflow from deepforge-server +# Remove pypi tensorflow in favor of conda installation +source activate deepforge +pip uninstall tensorflow -y +conda install tensorflow==1.14 -y +conda env export -n deepforge > src/plugins/GenerateJob/templates/environment.worker.yml + source activate deepforge-server pip uninstall tensorflow -y conda install tensorflow==1.14 -y @@ -11,6 +16,7 @@ wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O jq && > config/components2.json < config/components2.json ./jq '.Storage.backends=(.Storage.backends | map(select(. != "gme")))' \ > config/components.json +rm config/components2.json deepforge start --server