Update to Dockerfile 62/9662/1
authorjosephthaliath <jo.thaliath@samsung.com>
Wed, 16 Nov 2022 07:59:05 +0000 (13:29 +0530)
committerjosephthaliath <jo.thaliath@samsung.com>
Wed, 16 Nov 2022 07:59:56 +0000 (13:29 +0530)
Issue-Id: AIMLFW-4

Signed-off-by: josephthaliath <jo.thaliath@samsung.com>
Change-Id: I4374a72f253a3782e2ff1eae8c53c0e0747df849

Dockerfile
kf-pipelines/Dockerfile.pipeline [new file with mode: 0644]

index e4ed0c6..c1a56af 100644 (file)
@@ -26,6 +26,3 @@ RUN npm install
 RUN npm install -g serve
 
 EXPOSE 32005
-
-#------------- ENTRYPOINT -----------------------
-ENTRYPOINT ["serve","-s","build", "-l","32005"]
diff --git a/kf-pipelines/Dockerfile.pipeline b/kf-pipelines/Dockerfile.pipeline
new file mode 100644 (file)
index 0000000..f499df2
--- /dev/null
@@ -0,0 +1,42 @@
+# ==================================================================================
+#
+#       Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved.
+#
+#   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.
+#
+# ==================================================================================
+
+FROM python:3.8
+RUN pip3 install protobuf==3.20.1
+RUN pip3 install tensorflow==2.5.0
+RUN pip3 install cassandra-driver==3.25.0
+RUN pip3 install pandas==1.4.4
+RUN pip3 install scikit-learn
+RUN pip3 install boto3
+RUN pip3 install botocore
+RUN pip3 install kubernetes
+
+RUN git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/sdk/feature-store"
+RUN git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/sdk/model-storage"
+RUN mkdir -p /SDK/featurestoresdk_main/
+RUN mkdir -p /SDK/modelmetricssdk_main/
+
+RUN cp -R feature-store/. /SDK/featurestoresdk_main/.
+RUN cp -R model-storage/. /SDK/modelmetricssdk_main/.
+
+WORKDIR /SDK
+
+RUN pip3 install featurestoresdk_main/.
+RUN pip3 install modelmetricssdk_main/.
+RUN mkdir -p /app_run
+WORKDIR /app_run