Build related files for aiml kf adapter 41/9541/2
authorSANDEEP KUMAR JAISAWAL <s.jaisawal@samsung.com>
Wed, 9 Nov 2022 09:36:02 +0000 (15:06 +0530)
committerSANDEEP KUMAR JAISAWAL <s.jaisawal@samsung.com>
Wed, 9 Nov 2022 10:27:22 +0000 (15:57 +0530)
Issue-id: AIMLWF-5

Signed-off-by: SANDEEP KUMAR JAISAWAL <s.jaisawal@samsung.com>
Change-Id: I102cfe3a6d5d1af834bb05868e84524606606bc4

Dockerfile [new file with mode: 0644]
container-tag.yaml [new file with mode: 0644]

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..4cfb2e3
--- /dev/null
@@ -0,0 +1,37 @@
+# ==================================================================================
+#
+#       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.
+#
+# ==================================================================================
+#Base Image
+FROM ubuntu:18.04
+
+# location in the container
+ENV TA_DIR /home/app/
+
+# Install dependencies
+RUN apt-get update && apt-get install -y \
+    python3 && apt-get install -y \
+    python3-pip
+WORKDIR ${TA_DIR}
+
+# Copy sources into the container
+COPY . .
+
+#Install the pip3 requirements
+RUN pip3 install -r requirements.txt
+
+#Expose the ports
+EXPOSE 5000
diff --git a/container-tag.yaml b/container-tag.yaml
new file mode 100644 (file)
index 0000000..d23cae5
--- /dev/null
@@ -0,0 +1,21 @@
+# ==================================================================================
+#
+#       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.
+#
+# ==================================================================================
+   # The Jenkins job requires a tag to build the Docker image.
+   # Global-JJB script assumes this file is in the repo root.
+---
+tag: 1.0.0
\ No newline at end of file