diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-11-04 09:21:03 +0100 |
---|---|---|
committer | zhao yehua <zhaoyh6@asiainfo.com> | 2021-11-04 13:17:45 +0000 |
commit | 302423c69fb45b242c2c41679e92491653a96611 (patch) | |
tree | b14f6fdfd39eed6281647523f907cddb78164f5b /standalone/src/main/assembly/run.sh | |
parent | 8125d5d5cb024135b154b2539826ad11905fb1f6 (diff) |
Better Dockerfile
Instead of running several RUN and retrieve archive at run,
use best practices in order to have a cleaner (but not at the best)
Dockerfile.
Issue-ID: USECASEUI-605
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I7d55e8fc2fd4ba743e02f63960e389c081e705e9
Diffstat (limited to 'standalone/src/main/assembly/run.sh')
-rwxr-xr-x | standalone/src/main/assembly/run.sh | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/standalone/src/main/assembly/run.sh b/standalone/src/main/assembly/run.sh index 94b4afa..ad7a946 100755 --- a/standalone/src/main/assembly/run.sh +++ b/standalone/src/main/assembly/run.sh @@ -1,6 +1,7 @@ #!/bin/bash # # Copyright 2016-2017 ZTE Corporation. +# Copyright 2021 Orange. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,19 +16,11 @@ # limitations under the License. # -cd /home/uuihome/uui/ -wget https://github.com/google-research/bert/archive/master.zip -wget https://storage.googleapis.com/bert_models/2018_10_18/uncased_L-12_H-768_A-12.zip +cd /home/uuihome/uui/bert-master/ || exit -unzip master.zip -unzip uncased_L-12_H-768_A-12.zip -rm master.zip uncased_L-12_H-768_A-12.zip -cp scripts/* bert-master/ -cd /home/uuihome/uui/bert-master/ - -mkdir upload -nohup python -u api_squad_online.py 33011 > online.log 2>&1 & -nohup python -u api_squad_offline.py 33012 > offline.log 2>&1 & -nohup python -u upload.py 33013 > upload.log 2>&1 & +mkdir -p upload +nohup sh -c 'python -u api_squad_online.py 33011 2>&1 | tee online.log' | tee nohup.out & +nohup sh -c 'python -u api_squad_offline.py 33012 2>&1 | tee offline.log' | tee nohup.out & +nohup sh -c 'python -u upload.py 33013 2>&1 | tee upload.log' | tee nohup.out & /usr/bin/tf_serving_entrypoint.sh |