aboutsummaryrefslogtreecommitdiffstats
path: root/assembly
diff options
context:
space:
mode:
Diffstat (limited to 'assembly')
-rw-r--r--assembly/dockerfile53
-rw-r--r--assembly/requirements29
-rwxr-xr-xassembly/run.sh19
3 files changed, 0 insertions, 101 deletions
diff --git a/assembly/dockerfile b/assembly/dockerfile
deleted file mode 100644
index b022d60..0000000
--- a/assembly/dockerfile
+++ /dev/null
@@ -1,53 +0,0 @@
-FROM tensorflow/serving:latest
-
-WORKDIR /home/run/
-
-RUN DEBIAN_FRONTEND=noninteractive apt-get update
-
-#RUN DEBIAN_FRONTEND=noninteractive apt-get install python3.7.3
-RUN DEBIAN_FRONTEND=noninteractive apt-get install wget -y
-RUN DEBIAN_FRONTEND=noninteractive apt-get install make -y
-RUN DEBIAN_FRONTEND=noninteractive apt-get install gcc -y
-RUN DEBIAN_FRONTEND=noninteractive apt-get install zlib* -y
-RUN DEBIAN_FRONTEND=noninteractive apt-get install libffi-dev -y
-RUN DEBIAN_FRONTEND=noninteractive apt-get install openssl -y
-#RUN DEBIAN_FRONTEND=noninteractive wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
-
-WORKDIR /home/run/
-RUN wget http://www.openssl.org/source/openssl-1.0.2j.tar.gz
-RUN tar -zxvf openssl-1.0.2j.tar.gz
-WORKDIR /home/run/openssl-1.0.2j
-RUN ./config --prefix=/usr/local/lab/openssl-1.0.2j shared no-zlib
-RUN make
-RUN make install
-RUN ln -s /usr/local/lab/openssl-1.0.2j/lib/libssl.so.1.0.0 /usr/lib/libssl.so.1.0.0
-RUN ln -s /usr/local/lab/openssl-1.0.2j/lib/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.1.0.0
-
-
-WORKDIR /home/run/
-COPY Python-3.7.3.tar.gz /home/run/
-RUN tar -zxvf Python-3.7.3.tar.gz
-WORKDIR /home/run/Python-3.7.3/
-#RUN DEBIAN_FRONTEND=noninteractive ./configure --with-ssl
-#RUN rm /home/run/Python-3.7.3/Modules/Setup
-#COPY Setup /home/run/Python-3.7.3/Modules/Setup
-RUN make
-RUN make install
-RUN ln -s /usr/local/bin/python3 /usr/bin/python
-RUN ln -s /usr/local/bin/pip3 /usr/bin/pip
-
-
-WORKDIR /home/run/
-RUN DEBIAN_FRONTEND=noninteractive apt-get install curl -y
-RUN DEBIAN_FRONTEND=noninteractive curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
-RUN DEBIAN_FRONTEND=noninteractive python get-pip.py
-
-COPY requirements /home/run/requirements
-RUN DEBIAN_FRONTEND=noninteractive pip install -r requirements
-
-ADD nlp.tar.gz /home/run/
-
-COPY run.sh /home/run/run.sh
-
-ENTRYPOINT /home/run/run.sh
-
diff --git a/assembly/requirements b/assembly/requirements
deleted file mode 100644
index a9cc63f..0000000
--- a/assembly/requirements
+++ /dev/null
@@ -1,29 +0,0 @@
-entrypoints==0.3
-Flask==1.1.1
-future==0.17.1
-joblib==0.13.2
-json5==0.8.4
-jsonschema==3.0.1
-Keras-Applications==1.0.8
-Keras-Preprocessing==1.1.0
-lxml==4.3.4
-matplotlib==3.1.0
-mkl-fft
-mkl-random
-mkl-service
-numpy==1.16.4
-numpydoc==0.9.1
-openpyxl==2.6.2
-pandas==0.24.2
-protobuf==3.13.0
-requests==2.22.0
-scikit-learn==0.21.2
-setuptools==41.0.1
-six==1.12.0
-tensorboard==1.14.0
-tensorflow==1.14.0
-tensorflow-estimator==1.14.0
-urllib3==1.24.2
-xlrd==1.2.0
-XlsxWriter==1.1.8
-xlwt==1.3.0
diff --git a/assembly/run.sh b/assembly/run.sh
deleted file mode 100755
index 132bfb6..0000000
--- a/assembly/run.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2016-2017 ZTE Corporation.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-sh start.sh 33011
-nohup python -u api_squad_online.py 33011 > online.log 2>&1 &
-nohup python -u api_squad_offline.py 33012 > offline.log 2>&1 &